1 // Channel.h 2 3 #ifndef NET_FS_CHANNEL_H 4 #define NET_FS_CHANNEL_H 5 6 #include <SupportDefs.h> 7 8 class Channel { 9 protected: 10 Channel(); 11 12 public: 13 virtual ~Channel(); 14 15 virtual void Close() = 0; 16 17 virtual status_t Send(const void* buffer, int32 size) = 0; 18 virtual status_t Receive(void* buffer, int32 size) = 0; 19 }; 20 21 #endif // NET_FS_CHANNEL_H 22