Changeset 53 in libcf for trunk/src/cf_socket.c


Ignore:
Timestamp:
04/03/13 17:13:09 (11 years ago)
Author:
cheese
Message:

#1 remove structure for remote host information interface from socket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_socket.c

    r50 r53  
    482482 *
    483483 * @param sock  서버 소켓
    484  * @param host  [옵션] 클라이언트 정보를 담을 CF_Socket_HostInfo 구조체 포인터
    485484 *
    486485 * @see CF_Socket_HostInfo
    487486 */
    488487int
    489 CF_Socket_Accept (const int             sock,
    490                   CF_Socket_HostInfo    * host)
     488CF_Socket_Accept (const int sock)
    491489{
    492490    int                 sockClient = 0;
     
    499497    if (sockClient < 0)
    500498        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     }
    509499
    510500    return sockClient;
Note: See TracChangeset for help on using the changeset viewer.