Lines Matching refs:GAddress
355 * The 'get' functions return a pointer to a GAddress object on success,
363 GSocketError GSocket_SetLocal(GSocket *socket, GAddress *address)
389 GSocketError GSocket_SetPeer(GSocket *socket, GAddress *address)
408 GAddress *GSocket_GetLocal(GSocket *socket)
410 GAddress *address = NULL ;
440 /* got a valid address from getsockname, create a GAddress object */
459 GAddress *GSocket_GetPeer(GSocket *socket)
1180 * GAddress
1200 GAddress *GAddress_new()
1202 GAddress *address;
1204 if ((address = (GAddress *) malloc(sizeof(GAddress))) == NULL)
1214 GAddress *GAddress_copy(GAddress *address)
1216 GAddress *addr2;
1220 if ((addr2 = (GAddress *) malloc(sizeof(GAddress))) == NULL)
1223 memcpy(addr2, address, sizeof(GAddress));
1227 void GAddress_destroy(GAddress *address)
1234 void GAddress_SetFamily(GAddress *address, GAddressType type)
1241 GAddressType GAddress_GetFamily(GAddress *address)
1248 GSocketError _GAddress_translate_from(GAddress *address,
1272 GSocketError _GAddress_translate_to(GAddress *address,
1288 GSocketError _GAddress_Init_INET(GAddress *address)
1296 GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname)
1318 GSocketError GAddress_INET_SetAnyAddress(GAddress *address)
1323 GSocketError GAddress_INET_SetHostAddress(GAddress *address,
1348 GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port,
1383 GSocketError GAddress_INET_SetPort(GAddress *address, unsigned short port)
1392 GSocketError GAddress_INET_GetHostName(GAddress *address, char *hostname, size_t sbuf)
1406 unsigned long GAddress_INET_GetHostAddress(GAddress *address)
1414 unsigned short GAddress_INET_GetPort(GAddress *address)
1642 GSocketError GAddress_UNIX_GetPath(GAddress *addr, char *path, size_t buf)
1647 GSocketError GAddress_UNIX_SetPath(GAddress *addr, const char *path)