示例#1
0
/***********************************************************************
 *		getservbyport		(WINSOCK.56)
 */
SEGPTR WINAPI getservbyport16(INT16 port, const char *proto)
{
    struct WS_servent *se;

    if (!(se = WS_getservbyport( port, proto ))) return 0;
    return ws_servent_32_to_16( se );
}
示例#2
0
文件: async.c 项目: AndreRH/wine
static LPARAM async_getservbyport( struct async_query_header *query )
{
    struct async_query_getservbyport *aq = CONTAINING_RECORD( query, struct async_query_getservbyport, query );
    struct WS_servent *se = WS_getservbyport( aq->serv_port, aq->serv_proto );

    return copy_se( query->sbuf, query->sbuflen, se );
}