1. using getaddrinfo()
Showing posts with label Network. Show all posts
Showing posts with label Network. Show all posts
How to connect client and server by socket
Posted at
10/04/2011 02:04:00 PM
The steps to establish a socket on the client side:
1. Create a socket with the socket() system call
int socket(int domain, int type, int protocol);
[C++]Function Prototypes in Socket programming
Posted at
9/27/2011 07:20:00 PM
accept()
// sys/types.h // sys/socket.h int accept(int s, struct sockaddr *addr, socklen_t *addrlen);
[C++]Structs in Socket Programming
Posted at
9/27/2011 07:20:00 PM
Below are IP structs used in socket programming.
Subscribe to:
Posts (Atom)