Initial repository 1.0.0
This commit is contained in:
commit
d8b1275884
1861 files changed
+66342
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
#ifndef __TCPSocket_h__
|
||||
#define __TCPSocket_h__
|
||||
|
||||
#include "includes"
|
||||
#include "Socket.h"
|
||||
#include "IPAddress.h"
|
||||
|
||||
namespace core {
|
||||
|
||||
///
|
||||
/// TCPSocket
|
||||
///
|
||||
/// Provides a network TCP socket.
|
||||
///
|
||||
/// For accessing TCP network functions use this object. The connection oriented nature of TCP
|
||||
/// provides a single client persistent connection with data error correction and a durable
|
||||
/// synchronous data connection.
|
||||
///
|
||||
|
||||
class TCPSocket : public Socket {
|
||||
|
||||
public:
|
||||
|
||||
TCPSocket(EPoll &ePoll);
|
||||
~TCPSocket();
|
||||
|
||||
void connect(IPAddress &address);
|
||||
|
||||
IPAddress ipAddress;
|
||||
|
||||
///
|
||||
/// The output method is called by a socket session (BMASession) and
|
||||
/// will output the detail information for the client socket. When extending
|
||||
/// BMATCPSocket or BMASession you can override the method to add attributes
|
||||
/// to the list.
|
||||
///
|
||||
|
||||
virtual void output(std::stringstream &out);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user