brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame^] | 1 | #ifndef AOS_NETWORK_RECEIVE_SOCKET_H_ |
| 2 | #define AOS_NETWORK_RECEIVE_SOCKET_H_ |
| 3 | |
| 4 | #include "Socket.h" |
| 5 | |
| 6 | namespace aos { |
| 7 | |
| 8 | class ReceiveSocket : public Socket { |
| 9 | public: |
| 10 | inline ReceiveSocket(NetworkPort port) { Connect(port); } |
| 11 | int Connect(NetworkPort port); |
| 12 | |
| 13 | inline int Recv(void *buf, int length) { return Socket::Recv(buf, length); } |
| 14 | inline int Recv(void *buf, int length, long usec) { return Socket::Recv(buf, length, usec); } |
| 15 | }; |
| 16 | |
| 17 | } // namespace aos |
| 18 | |
| 19 | #endif |