/*********************************************************************** * 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 ); }
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 ); }