|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|


Go to the source code of this file.
Classes | |
| struct | unix_sock |
Macros | |
| #define | UNIX_SOCK_POOL_SIZE 8 |
| #define | UNIX_SOCK_BUF_SIZE 4096 |
| #define | UNIX_SOCK_PATH_MAX 108 |
| #define | UNIX_BACKLOG_MAX 4 |
Typedefs | |
| typedef struct unix_sock | unix_sock_t |
Enumerations | |
| enum | unix_state_t { UNIX_STATE_FREE = 0 , UNIX_STATE_BOUND , UNIX_STATE_LISTENING , UNIX_STATE_CONNECTED , UNIX_STATE_CONNECTING } |
Functions | |
| unix_sock_t * | unix_sock_alloc (void) |
| void | unix_sock_free (unix_sock_t *s) |
| int | unix_sock_bind (unix_sock_t *s, const char *path) |
| int | unix_sock_listen (unix_sock_t *s, int backlog) |
| unix_sock_t * | unix_sock_accept (unix_sock_t *server) |
| int | unix_sock_connect (unix_sock_t *s, const char *path) |
| int | unix_sock_write (unix_sock_t *s, const void *buf, size_t len) |
| int | unix_sock_read (unix_sock_t *s, void *buf, size_t len) |
| int | unix_sock_socketpair (unix_sock_t **a, unix_sock_t **b) |
| int | unix_sock_close (unix_sock_t *s) |
| int | unix_sock_has_data (unix_sock_t *s) |
| #define UNIX_BACKLOG_MAX 4 |
| #define UNIX_SOCK_BUF_SIZE 4096 |
| #define UNIX_SOCK_PATH_MAX 108 |
| #define UNIX_SOCK_POOL_SIZE 8 |
| typedef struct unix_sock unix_sock_t |
| enum unix_state_t |
| unix_sock_t * unix_sock_accept | ( | unix_sock_t * | server | ) |


| unix_sock_t * unix_sock_alloc | ( | void | ) |


| int unix_sock_bind | ( | unix_sock_t * | s, |
| const char * | path ) |


| int unix_sock_close | ( | unix_sock_t * | s | ) |


| int unix_sock_connect | ( | unix_sock_t * | s, |
| const char * | path ) |


| void unix_sock_free | ( | unix_sock_t * | s | ) |

| int unix_sock_has_data | ( | unix_sock_t * | s | ) |

| int unix_sock_listen | ( | unix_sock_t * | s, |
| int | backlog ) |

| int unix_sock_read | ( | unix_sock_t * | s, |
| void * | buf, | ||
| size_t | len ) |


| int unix_sock_socketpair | ( | unix_sock_t ** | a, |
| unix_sock_t ** | b ) |


| int unix_sock_write | ( | unix_sock_t * | s, |
| const void * | buf, | ||
| size_t | len ) |

