Define connect call in socket programming? suki 26-October-2007 05:19:31 PMComments 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 |
Posted: 26-October-2007 05:53:06 PM By: zack 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: 31-December-2008 12:11:09 AM By: waqasahmad #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: 24-February-2009 04:36:39 AM By: crouse 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 |