GATE
|
Public Member Functions | |
SocopClient (SocopDriver &driver) | |
Result | reset () |
Result | net_status () |
Result | net_start (char const *parameters, unsigned parameters_length) |
Result | net_stop () |
Result | connect (Address const &addr, Socket &new_tcp_socket) |
Result | bind (Address const &addr, Socket &new_udp_socket) |
Result | listen (Address const &addr, Socket &new_listen_socket) |
Result | accept (Socket listen_socket, Socket &new_connection_socket) |
Result | close (Socket sock) |
Result | receive (Socket sock, void *buffer, unsigned buffer_length, unsigned &buffer_used) |
Result | receive_from (Socket sock, void *buffer, unsigned buffer_length, unsigned &buffer_used, Address &addr) |
Result | send (Socket sock, void const *buffer, unsigned buffer_length, unsigned &buffer_sent) |
Result | send_to (Socket sock, void const *buffer, unsigned buffer_length, unsigned &buffer_sent, Address const &addr) |
Result | shutdown (Socket sock, unsigned flags) |
Result | select (Socket sock, unsigned &flags, unsigned timeout_ms) |
Result | peer (Socket sock, Address &addr) |
Result | iocontrol (Socket sock, unsigned option, void *buffer, unsigned buffer_len) |
Additional Inherited Members | |
Public Types inherited from Socop | |
enum | Result { Ok = SOCOP_OK , Error = SOCOP_ERROR , Error_NotImpl = SOCOP_ERROR_NOTIMPL , Error_IO = SOCOP_ERROR_IO , Error_Timeout = SOCOP_ERROR_TIMEOUT , Error_InvalidData = SOCOP_ERROR_INVALIDDATA , Error_OutOfBounds = SOCOP_ERROR_OUTOFBOUNDS , Error_WrongMessage = SOCOP_ERROR_WRONGMESSAGE , Error_ResourceError = SOCOP_ERROR_RESOURCEERROR , Error_Corruption = SOCOP_ERROR_CORRUPTION , Error_InvalidArg = SOCOP_ERROR_INVALIDARG , Error_Failed = SOCOP_ERROR_FAILED } |
enum | Flags { Flag_Receive = SOCOP_MSG_FLAG_RECV , Flag_Send = SOCOP_MSG_FLAG_SEND , Flag_Error = SOCOP_MSG_FLAG_ERROR } |
typedef socop_socket_t | Socket |
typedef socop_addr_t | Address |
typedef socop_word_t | word_t |
Static Protected Member Functions inherited from Socop | |
static Result | translate_result (int result) |
static int | translate_result (Result result) |