ObjFW
|
Go to the source code of this file.
Classes | |
struct | OFSocketAddress |
A struct which represents a host / port pair for a socket. More... | |
Enumerations | |
enum | OFSocketAddressFamily { OFSocketAddressFamilyUnknown , OFSocketAddressFamilyIPv4 , OFSocketAddressFamilyIPv6 , OFSocketAddressFamilyUNIX , OFSocketAddressFamilyIPX , OFSocketAddressFamilyAppleTalk , OFSocketAddressFamilyAny = 255 } |
A socket address family. More... | |
Functions | |
OFSocketAddress | OFSocketAddressParseIP (OFString *IP, uint16_t port) |
Parses the specified IP (either v4 or v6) and port into an OFSocketAddress. | |
OFSocketAddress | OFSocketAddressParseIPv4 (OFString *IP, uint16_t port) |
Parses the specified IPv4 and port into an OFSocketAddress. | |
OFSocketAddress | OFSocketAddressParseIPv6 (OFString *IP, uint16_t port) |
Parses the specified IPv6 and port into an OFSocketAddress. | |
OFSocketAddress | OFSocketAddressMakeUNIX (OFString *path) |
Creates a UNIX socket address from the specified path. | |
OFSocketAddress | OFSocketAddressMakeIPX (uint32_t network, const unsigned char node[IPX_NODE_LEN], uint16_t port) |
Creates an IPX address for the specified network, node and port. | |
OFSocketAddress | OFSocketAddressMakeAppleTalk (uint16_t network, uint8_t node, uint8_t port) |
Creates an AppleTalk address for the specified network, node and port. | |
bool | OFSocketAddressEqual (const OFSocketAddress *address1, const OFSocketAddress *address2) |
Compares two OFSocketAddress for equality. | |
unsigned long | OFSocketAddressHash (const OFSocketAddress *address) |
Returns the hash for the specified OFSocketAddress. | |
OFString * | OFSocketAddressString (const OFSocketAddress *address) |
Converts the specified OFSocketAddress to a string. | |
OFString * | OFSocketAddressDescription (const OFSocketAddress *address) |
Returns a description for the specified OFSocketAddress. | |
void | OFSocketAddressSetIPPort (OFSocketAddress *address, uint16_t port) |
Sets the IP port of the specified OFSocketAddress. | |
uint16_t | OFSocketAddressIPPort (const OFSocketAddress *address) |
Returns the IP port of the specified OFSocketAddress. | |
OFString * | OFSocketAddressUNIXPath (const OFSocketAddress *address) |
Gets the UNIX socket path of the specified OFSocketAddress. | |
void | OFSocketAddressSetIPXNetwork (OFSocketAddress *address, uint32_t network) |
Sets the IPX network of the specified OFSocketAddress. | |
uint32_t | OFSocketAddressIPXNetwork (const OFSocketAddress *address) |
Returns the IPX network of the specified OFSocketAddress. | |
void | OFSocketAddressSetIPXNode (OFSocketAddress *address, const unsigned char node[IPX_NODE_LEN]) |
Sets the IPX node of the specified OFSocketAddress. | |
void | OFSocketAddressGetIPXNode (const OFSocketAddress *address, unsigned char node[IPX_NODE_LEN]) |
Gets the IPX node of the specified OFSocketAddress. | |
void | OFSocketAddressSetIPXPort (OFSocketAddress *address, uint16_t port) |
Sets the IPX port of the specified OFSocketAddress. | |
uint16_t | OFSocketAddressIPXPort (const OFSocketAddress *address) |
Returns the IPX port of the specified OFSocketAddress. | |
void | OFSocketAddressSetAppleTalkNetwork (OFSocketAddress *address, uint16_t network) |
Sets the AppleTalk network of the specified OFSocketAddress. | |
uint16_t | OFSocketAddressAppleTalkNetwork (const OFSocketAddress *address) |
Returns the AppleTalk network of the specified OFSocketAddress. | |
void | OFSocketAddressSetAppleTalkNode (OFSocketAddress *address, uint8_t node) |
Sets the AppleTalk node of the specified OFSocketAddress. | |
uint8_t | OFSocketAddressAppleTalkNode (const OFSocketAddress *address) |
Gets the AppleTalk node of the specified OFSocketAddress. | |
void | OFSocketAddressSetAppleTalkPort (OFSocketAddress *address, uint8_t port) |
Sets the AppleTalk port of the specified OFSocketAddress. | |
uint8_t | OFSocketAddressAppleTalkPort (const OFSocketAddress *address) |
Returns the AppleTalk port of the specified OFSocketAddress. | |
|
extern |
Returns the AppleTalk network of the specified OFSocketAddress.
address | The address on which to get the AppleTalk network |
|
extern |
Gets the AppleTalk node of the specified OFSocketAddress.
address | The address on which to get the AppleTalk node |
|
extern |
Returns the AppleTalk port of the specified OFSocketAddress.
address | The address on which to get the port |
|
extern |
Returns a description for the specified OFSocketAddress.
This is similar to OFSocketAddressString, but it also contains the port.
address | The address to return a description for |
|
extern |
Compares two OFSocketAddress for equality.
address1 | The address to compare with the second address |
address2 | The second address |
|
extern |
Gets the IPX node of the specified OFSocketAddress.
address | The address on which to get the IPX node |
node | A byte array to store the IPX node of the address |
|
extern |
Returns the hash for the specified OFSocketAddress.
address | The address to hash |
|
extern |
Returns the IP port of the specified OFSocketAddress.
address | The address on which to get the port |
|
extern |
Returns the IPX network of the specified OFSocketAddress.
address | The address on which to get the IPX network |
|
extern |
Returns the IPX port of the specified OFSocketAddress.
address | The address on which to get the port |
|
extern |
Creates an AppleTalk address for the specified network, node and port.
network | The AppleTalk network |
node | The node in the AppleTalk network |
port | The AppleTalk (sometimes called socket number) on the node |
|
extern |
Creates an IPX address for the specified network, node and port.
network | The IPX network |
node | The node in the IPX network |
port | The IPX port (sometimes called socket number) on the node |
|
extern |
Creates a UNIX socket address from the specified path.
path | The path of the UNIX socket |
|
extern |
Parses the specified IP (either v4 or v6) and port into an OFSocketAddress.
IP | The IP to parse |
port | The port to use |
OFInvalidFormatException | The specified string is not a valid IP |
|
extern |
Parses the specified IPv4 and port into an OFSocketAddress.
IP | The IPv4 to parse |
port | The port to use |
OFInvalidFormatException | The specified string is not a valid IPv4 |
|
extern |
Parses the specified IPv6 and port into an OFSocketAddress.
IP | The IPv6 to parse |
port | The port to use |
OFInvalidFormatException | The specified string is not a valid IPv6 |
|
extern |
Sets the AppleTalk network of the specified OFSocketAddress.
address | The address on which to set the AppleTalk network |
network | The AppleTalk network to set on the address |
|
extern |
Sets the AppleTalk node of the specified OFSocketAddress.
address | The address on which to set the AppleTalk node |
node | The AppleTalk node to set on the address |
|
extern |
Sets the AppleTalk port of the specified OFSocketAddress.
address | The address on which to set the port |
port | The port to set on the address |
|
extern |
Sets the IP port of the specified OFSocketAddress.
address | The address on which to set the port |
port | The port to set on the address |
|
extern |
Sets the IPX network of the specified OFSocketAddress.
address | The address on which to set the IPX network |
network | The IPX network to set on the address |
|
extern |
Sets the IPX node of the specified OFSocketAddress.
address | The address on which to set the IPX node |
node | The IPX node to set on the address |
|
extern |
Sets the IPX port of the specified OFSocketAddress.
address | The address on which to set the port |
port | The port to set on the address |
|
extern |
Converts the specified OFSocketAddress to a string.
address | The address to convert to a string |
|
extern |
Gets the UNIX socket path of the specified OFSocketAddress.
address | The address on which to get the UNIX socket path |