Comments
1. int status = connect(sock, &name, namelen);
- status: 0 if successful connect, -1 otherwise
- sock: integer, socket to be used in connection
- name: struct sockaddr: address of passive participant
- namelen: integer, sizeof(name)
2. connect is blocking
Posted by crouse
#define DATA1 "test string 1" #define DATA2 "test string 2" #include ... In the call to connect, s is the file descriptor for the socket. name is a pointer ...more details
www.cs.vu.nl/~jms/socket-info.html - 59k
Posted by waqasahmad
1. int status = connect(sock, &name, namelen);
- status: 0 if successful connect, -1 otherwise
- sock: integer, socket to be used in connection
- name: struct sockaddr: address of passive participant
- namelen: integer, sizeof(name)
2. connect is blocking
Posted by zack