Changeset 14415
- Timestamp:
- 03/04/12 19:46:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/sock.h
r14407 r14415 143 143 int sockportopen(int *fd, char* ip, int port, int tout) 144 144 { 145 sockclose(fd);146 145 int ret = 0, rest = 0, optval; 147 146 socklen_t optlen = sizeof(optval); 148 147 struct timeval timeout; 149 148 struct sockaddr_in cliaddr; 149 150 if(ip == NULL) return 1; 151 sockclose(fd); 150 152 151 153 memset(&cliaddr, 0, sizeof(struct sockaddr_in));
Note: See TracChangeset
for help on using the changeset viewer.