First, portability. It is not just depreciated -- it's been completely removed from the POSIX specification. In fact, it is not part of the ANSI C standard and I think never was. I'm guessing it's...
Type: Posts; User: MK27
First, portability. It is not just depreciated -- it's been completely removed from the POSIX specification. In fact, it is not part of the ANSI C standard and I think never was. I'm guessing it's...
A simple way to do this if you know the ip address and port number:
int sock = socket(PF_INET, SOCK_STREAM, 0);
struct sockaddr_in addr;
addr.sin_family = AF_INET;...