|
|
| 51 |
TcpSocket (void); |
51 |
TcpSocket (void); |
| 52 |
virtual ~TcpSocket (void); |
52 |
virtual ~TcpSocket (void); |
| 53 |
|
53 |
|
| 54 |
virtual enum Socket::SocketErrno GetErrno (void) const = 0; |
|
|
| 55 |
virtual Ptr<Node> GetNode (void) const = 0; |
| 56 |
virtual int Bind () = 0; |
| 57 |
virtual int Close (void) = 0; |
| 58 |
virtual int ShutdownSend (void) = 0; |
| 59 |
virtual int ShutdownRecv (void) = 0; |
| 60 |
virtual int Connect (const Address &address) = 0; |
| 61 |
virtual uint32_t GetTxAvailable (void) const = 0; |
| 62 |
virtual int Send (Ptr<Packet> p, uint32_t flags) = 0; |
| 63 |
virtual int SendTo (Ptr<Packet> p, uint32_t flags, |
| 64 |
const Address &toAddress) = 0; |
| 65 |
virtual uint32_t GetRxAvailable (void) const = 0; |
| 66 |
virtual Ptr<Packet> Recv (uint32_t maxSize, uint32_t flags) = 0; |
| 67 |
virtual Ptr<Packet> RecvFrom (uint32_t maxSize, uint32_t flags, |
| 68 |
Address &fromAddress) = 0; |
| 69 |
|
| 70 |
|
| 71 |
private: |
54 |
private: |
| 72 |
// Indirect the attribute setting and getting through private virtual methods |
55 |
// Indirect the attribute setting and getting through private virtual methods |
| 73 |
virtual void SetSndBufSize (uint32_t size) = 0; |
56 |
virtual void SetSndBufSize (uint32_t size) = 0; |