libsocket
|
Go to the source code of this file.
Functions | |
int | create_unix_stream_socket (const char *path, int flags) |
Create and connect a new UNIX STREAM socket. More... | |
int | create_unix_dgram_socket (const char *bind_path, int flags) |
Create a UNIX DGRAM socket. More... | |
int | connect_unix_dgram_socket (int sfd, const char *path) |
Connect a datagram socket. More... | |
int | destroy_unix_socket (int sfd) |
Close a socket. More... | |
int | shutdown_unix_stream_socket (int sfd, int method) |
Shut a socket down. More... | |
int | create_unix_server_socket (const char *path, int socktype, int flags) |
Create a passive UNIX socket. More... | |
int | accept_unix_stream_socket (int sfd, int flags) |
Accept connections on a passive UNIX socket. More... | |
ssize_t | recvfrom_unix_dgram_socket (int sfd, void *buf, size_t size, char *from, size_t from_size, int recvfrom_flags) |
Receive datagram from another UNIX socket. More... | |
ssize_t | sendto_unix_dgram_socket (int sfd, const void *buf, size_t size, const char *path, int sendto_flags) |
Send datagram to socket. More... | |
Contains all libunixsocket C functions.
The committers of the libsocket project, all rights reserved (c) 2012, dermesser <lbo@spheniscida.de> Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above
copyright notice, this list of conditions and the following disclaimer.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS “AS IS” ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file libunixsocket.h.