Lines Matching defs:SockAddress
184 } SockAddress;
192 void sock_address_init_inet( SockAddress* a, uint32_t ip, uint16_t port );
198 void sock_address_init_in6 ( SockAddress* a, const uint8_t* ip6[16], uint16_t port );
205 void sock_address_init_unix( SockAddress* a, const char* path );
209 void sock_address_done( SockAddress* a );
211 int sock_address_equal( const SockAddress* a, const SockAddress* b );
214 const char* sock_address_to_string( const SockAddress* a );
217 SocketFamily sock_address_get_family( const SockAddress* a )
223 int sock_address_get_port( const SockAddress* a );
226 void sock_address_set_port( SockAddress* a, uint16_t port );
229 const char* sock_address_get_path( const SockAddress* a );
232 int sock_address_get_ip( const SockAddress* a );
235 char* bufprint_sock_address( char* p, char* end, const SockAddress* a );
246 int sock_address_init_resolve( SockAddress* a,
251 int sock_address_get_numeric_info( SockAddress* a,
265 /* resolve a host and service/port name into a list of SockAddress objects.
266 * returns a NULL-terminated array of SockAddress pointers on success,
280 SockAddress** sock_address_list_create( const char* hostname,
284 /* resolve a string containing host and port name into a list of SockAddress
289 * returns a NULL-terminated array of SockAddress pointers on success,
303 SockAddress** sock_address_list_create2(const char* host_and_port,
306 void sock_address_list_free( SockAddress** list );
363 int socket_recvfrom( int fd, void* buf, int buflen, SockAddress* from );
367 int socket_sendto( int fd, const void* buf, int buflen, const SockAddress* to );
369 int socket_connect( int fd, const SockAddress* address );
370 int socket_bind( int fd, const SockAddress* address );
371 int socket_get_address( int fd, SockAddress* address );
372 int socket_get_peer_address( int fd, SockAddress* address );
374 int socket_accept( int fd, SockAddress* address );