ApertureOS
Functions | Variables
socket.c File Reference
#include "socket.h"
#include "priv_socket.h"
Include dependency graph for socket.c:

Functions

SOCK_ERROR Socket_Create (const char *name, SocketDesc *desc)
 Create a new Socket and register it to the kernel. More...
 
SOCK_ERROR Socket_Connect (const char *name, SocketConnectionDesc *desc, UID *id)
 Attempt to connect to a socket. More...
 
SOCK_ERROR Socket_Disconnect (UID id)
 Attempt to disconnect from the socket. More...
 
SOCK_ERROR Socket_ReadAsync (UID id, uint8_t *buffer, uint32_t size)
 Request an asynchronous read from the socket. More...
 
SOCK_ERROR Socket_WriteAsync (UID id, uint8_t *buffer, uint32_t size)
 Request an asynchronous write to the socket. More...
 
SOCK_ERROR Socket_SeekAsync (UID id, uint64_t offset, int whence)
 Request an asynchronous seek of the socket. More...
 

Variables

SocketInfosockets = NULL
 
SocketInfolastSocket = NULL
 

Variable Documentation

SocketInfo * lastSocket = NULL
SocketInfo* sockets = NULL