![]() |
DDraceNetwork Documentation
|
Functions | |
| UNIXSOCKET | net_unix_create_unnamed () |
| int | net_unix_send (UNIXSOCKET sock, UNIXSOCKETADDR *addr, void *data, int size) |
| void | net_unix_set_addr (UNIXSOCKETADDR *addr, const char *path) |
| void | net_unix_close (UNIXSOCKET sock) |
| void net_unix_close | ( | UNIXSOCKET | sock | ) |
Closes a Unix socket.
| sock | Socket to close. |
| UNIXSOCKET net_unix_create_unnamed | ( | ) |
Creates an unnamed unix datagram socket.
-1. | int net_unix_send | ( | UNIXSOCKET | sock, |
| UNIXSOCKETADDR * | addr, | ||
| void * | data, | ||
| int | size | ||
| ) |
Sends data to a Unix socket.
| sock | Socket to use. |
| addr | Where to send the packet. |
| data | Pointer to the packet data to send. |
| size | Size of the packet. |
| void net_unix_set_addr | ( | UNIXSOCKETADDR * | addr, |
| const char * | path | ||
| ) |
Sets the unixsocketaddress for a path to a socket file.
| addr | Pointer to the UNIXSOCKETADDR to fill. |
| path | Path to the (named) unix socket. |