|
JBus
JoyBus communication server
|
#include <Socket.hpp>
Public Types | |
| enum | EResult { EResult::OK, EResult::Error, EResult::Busy } |
Public Member Functions | |
| Socket (bool blocking) | |
| ~Socket () | |
| Socket (const Socket &other)=delete | |
| Socket & | operator= (const Socket &other)=delete |
| Socket (Socket &&other) | |
| Socket & | operator= (Socket &&other) |
| void | setBlocking (bool blocking) |
| bool | isOpen () const |
| bool | openAndListen (const IPAddress &address, uint32_t port) |
| EResult | accept (Socket &remoteSocketOut, sockaddr_in &fromAddress) |
| EResult | accept (Socket &remoteSocketOut) |
| EResult | accept (Socket &remoteSocketOut, std::string &fromHostname) |
| void | close () |
| EResult | send (const void *buf, size_t len, size_t &transferred) |
| EResult | send (const void *buf, size_t len) |
| EResult | recv (void *buf, size_t len, size_t &transferred) |
| EResult | recv (void *buf, size_t len) |
| operator bool () const | |
| SocketTp | GetInternalSocket () const |
Server-oriented TCP socket class derived from SFML
|
strong |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |