Changeset 74 in flair-dev for trunk/include/FlairCore/TcpSocket.h
- Timestamp:
- May 24, 2018, 11:46:38 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairCore/TcpSocket.h
r13 r74 30 30 void Listen(const unsigned int port, const std::string localAddress = "ANY"); 31 31 TcpSocket *Accept( 32 Time timeout = 0); // should throw an exception if not a listening socket32 Time timeout = TIME_INFINITE); 33 33 bool Connect(const unsigned int distantPort, const std::string distantAddress, 34 Time timeout = 0); // timeout in milliseconds 35 ssize_t SendMessage(const char *message, size_t message_len, 36 Time timeout = 0); // timeout in milliseconds 37 ssize_t RecvMessage(char *buf, size_t buf_len, 38 Time timeout = 0); // timeout in milliseconds 34 Time timeout = TIME_INFINITE); 35 ssize_t SendMessage(const char *message, size_t message_len, Time timeout = TIME_INFINITE); 36 ssize_t RecvMessage(char *buf, size_t buf_len, Time timeout = TIME_INFINITE); 39 37 40 38 uint16_t NetworkToHost16(uint16_t data); … … 48 46 bool blockOnReceive; 49 47 bool isConnected; 48 bool isListening; 50 49 unsigned int distantPort; 51 50 std::string distantAddress; 51 char *sendRingBuffer, *recvRingBuffer; 52 52 }; 53 53
Note:
See TracChangeset
for help on using the changeset viewer.