1// InsecureChannel.h 2 3#ifndef NET_FS_INSECURE_CHANNEL_H 4#define NET_FS_INSECURE_CHANNEL_H 5 6#include "Channel.h" 7 8class NetAddress; 9 10class InsecureChannel : public Channel { 11public: 12 InsecureChannel(int socket); 13 virtual ~InsecureChannel(); 14 15 virtual void Close(); 16 17 virtual status_t Send(const void* buffer, int32 size); 18 virtual status_t Receive(void* buffer, int32 size); 19 20 status_t GetPeerAddress(NetAddress *address) const; 21 22private: 23 int32 fSocket; 24 bool fClosed; 25}; 26 27#endif // NET_FS_INSECURE_CHANNEL_H 28