Ejemplo n.º 1
0
/***********************************************************************
 *		gethostbyaddr		(WINSOCK.51)
 */
SEGPTR WINAPI gethostbyaddr16(const char *addr, INT16 len, INT16 type)
{
    struct WS_hostent *he;

    if (!(he = WS_gethostbyaddr( addr, len, type ))) return 0;
    return ws_hostent_32_to_16( he );
}
Ejemplo n.º 2
0
Archivo: async.c Proyecto: AndreRH/wine
static LPARAM async_gethostbyaddr( struct async_query_header *query )
{
    struct async_query_gethostbyaddr *aq = CONTAINING_RECORD( query, struct async_query_gethostbyaddr, query );
    struct WS_hostent *he = WS_gethostbyaddr( aq->host_addr, aq->host_len, aq->host_type );

    return copy_he( query->sbuf, query->sbuflen, he );
}