|
|
| TcpClient () |
| | Constructs a TcpClient object by default.
|
| |
|
| TcpClient (TcpClient &&tcpClient)=default |
| |
| SocketState | Connect (const IpAddress &remoteAddress) |
| | Connects to the IpAddress. More...
|
| |
| SocketState | Connect (const String &hostName, NetProtocol protocol=NetProtocol_Any, const String &service="http", ResolveError *error=nullptr) |
| | Connects to the hostname. More...
|
| |
| void | Disconnect () |
| | Disconnects the connection. More...
|
| |
| void | EnableLowDelay (bool lowDelay) |
| | Enables low delay in emitting. More...
|
| |
| void | EnableKeepAlive (bool keepAlive, UInt64 msTime=10000, UInt64 msInterval=1000) |
| | Enables the keep alive flag. More...
|
| |
| bool | EndOfStream () const override |
| | Checks whether the stream reached the end of the stream. More...
|
| |
| UInt64 | GetCursorPos () const override |
| | Gets the position of the cursor. More...
|
| |
| UInt64 | GetKeepAliveInterval () const |
| | Gets the interval between two keep alive pings. More...
|
| |
| UInt64 | GetKeepAliveTime () const |
| | Gets the time before expiration of connection. More...
|
| |
| IpAddress | GetRemoteAddress () const |
| | Gets the remote address. More...
|
| |
| UInt64 | GetSize () const override |
| | Gets the size of the raw memory available. More...
|
| |
| bool | IsLowDelayEnabled () const |
| | Checks whether low delay is enabled. More...
|
| |
| bool | IsKeepAliveEnabled () const |
| | Checks whether the keep alive flag is enabled. More...
|
| |
| bool | Receive (void *buffer, std::size_t size, std::size_t *received) |
| | Receives the data available. More...
|
| |
| bool | ReceivePacket (NetPacket *packet) |
| | Receives the packet available. More...
|
| |
| bool | Send (const void *buffer, std::size_t size, std::size_t *sent) |
| | Sends the data available. More...
|
| |
| bool | SendMultiple (const NetBuffer *buffers, std::size_t bufferCount, std::size_t *sent) |
| | Sends multiple buffers at once. More...
|
| |
| bool | SendPacket (const NetPacket &packet) |
| | Sends the packet available. More...
|
| |
| bool | SetCursorPos (UInt64 offset) override |
| | Sets the position of the cursor. More...
|
| |
| bool | WaitForConnected (UInt64 msTimeout=3000) |
| | Waits for being connected before time out. More...
|
| |
|
TcpClient & | operator= (TcpClient &&tcpClient)=default |
| |
|
| AbstractSocket (const AbstractSocket &)=delete |
| |
| | AbstractSocket (AbstractSocket &&abstractSocket) |
| | Constructs a AbstractSocket object with another one by move semantic. More...
|
| |
| virtual | ~AbstractSocket () |
| | Destructs the object and calls Close. More...
|
| |
|
void | Close () |
| | Closes the socket.
|
| |
| void | EnableBlocking (bool blocking) |
| | Enables blocking. More...
|
| |
| SocketError | GetLastError () const |
| | Gets the last error. More...
|
| |
| SocketHandle | GetNativeHandle () const |
| | Gets the internal socket handle. More...
|
| |
| SocketState | GetState () const |
| | Gets the internal state. More...
|
| |
| SocketType | GetType () const |
| | Gets the internal type. More...
|
| |
| bool | IsBlockingEnabled () const |
| | Checks whether the blocking is enabled. More...
|
| |
| std::size_t | QueryAvailableBytes () const |
| | Queries the available bytes. More...
|
| |
| std::size_t | QueryReceiveBufferSize () const |
| | Queries the maximum socket receive buffer size. More...
|
| |
| std::size_t | QuerySendBufferSize () const |
| | Queries the maximum socket send buffer size. More...
|
| |
| void | SetReceiveBufferSize (std::size_t size) |
| | Sets the maximum receive buffer size. More...
|
| |
| void | SetSendBufferSize (std::size_t size) |
| | Sets the maximum send buffer size. More...
|
| |
|
AbstractSocket & | operator= (const AbstractSocket &)=delete |
| |
| AbstractSocket & | operator= (AbstractSocket &&abstractSocket) |
| | Moves the AbstractSocket into this. More...
|
| |
|
| NazaraSignal (OnStateChange, const AbstractSocket *, SocketState) |
| |
|
| Stream (const Stream &)=default |
| |
|
| Stream (Stream &&)=default |
| |
|
virtual | ~Stream () |
| | Destructs the object.
|
| |
| void | EnableTextMode (bool textMode) |
| | Enables the text mode. More...
|
| |
| void | Flush () |
| | Flushes the stream. More...
|
| |
| virtual String | GetDirectory () const |
| | Gets the directory of the stream. More...
|
| |
| virtual String | GetPath () const |
| | Gets the path of the stream. More...
|
| |
| OpenModeFlags | GetOpenMode () const |
| | Gets the open mode of the stream. More...
|
| |
| StreamOptionFlags | GetStreamOptions () const |
| | Gets the options of the stream. More...
|
| |
| std::size_t | Read (void *buffer, std::size_t size) |
| | Reads the stream and puts the result in a buffer. More...
|
| |
| virtual String | ReadLine (unsigned int lineSize=0) |
| | Reads a line from the stream. More...
|
| |
| bool | IsReadable () const |
| | Checks whether the stream is readable. More...
|
| |
| bool | IsSequential () const |
| | Checks whether the stream is sequential. More...
|
| |
| bool | IsTextModeEnabled () const |
| | Checks whether the stream has text mode enabled. More...
|
| |
| bool | IsWritable () const |
| | Checks whether the stream can be written. More...
|
| |
| bool | Write (const ByteArray &byteArray) |
| | Writes a ByteArray into the stream. More...
|
| |
| bool | Write (const String &string) |
| | Writes a String into the stream. More...
|
| |
| std::size_t | Write (const void *buffer, std::size_t size) |
| | Writes in the stream the content of a buffer. More...
|
| |
|
Stream & | operator= (const Stream &)=default |
| |
|
Stream & | operator= (Stream &&)=default |
| |
Network class that represents a client in a TCP connection.