Changeset 53 in libcf for trunk/src/cf_socket.c
- Timestamp:
- 04/03/13 17:13:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_socket.c
r50 r53 482 482 * 483 483 * @param sock 서버 소켓 484 * @param host [옵션] 클라이언트 정보를 담을 CF_Socket_HostInfo 구조체 포인터485 484 * 486 485 * @see CF_Socket_HostInfo 487 486 */ 488 487 int 489 CF_Socket_Accept (const int sock, 490 CF_Socket_HostInfo * host) 488 CF_Socket_Accept (const int sock) 491 489 { 492 490 int sockClient = 0; … … 499 497 if (sockClient < 0) 500 498 return CF_ERROR_SOCKET_ACCEPT; 501 502 if (host != NULL)503 {504 snprintf (host->address, sizeof (host->address) - 1,505 "%s",506 inet_ntoa (address.sin_addr));507 host->port = ntohs (address.sin_port);508 }509 499 510 500 return sockClient;
Note:
See TracChangeset
for help on using the changeset viewer.