15a1d355fSStephan Aßmus // InsecureChannel.h 25a1d355fSStephan Aßmus 35a1d355fSStephan Aßmus #ifndef NET_FS_INSECURE_CHANNEL_H 45a1d355fSStephan Aßmus #define NET_FS_INSECURE_CHANNEL_H 55a1d355fSStephan Aßmus 65a1d355fSStephan Aßmus #include "Channel.h" 75a1d355fSStephan Aßmus 85a1d355fSStephan Aßmus class NetAddress; 95a1d355fSStephan Aßmus 105a1d355fSStephan Aßmus class InsecureChannel : public Channel { 115a1d355fSStephan Aßmus public: 125a1d355fSStephan Aßmus InsecureChannel(int socket); 135a1d355fSStephan Aßmus virtual ~InsecureChannel(); 145a1d355fSStephan Aßmus 155a1d355fSStephan Aßmus virtual void Close(); 165a1d355fSStephan Aßmus 175a1d355fSStephan Aßmus virtual status_t Send(const void* buffer, int32 size); 185a1d355fSStephan Aßmus virtual status_t Receive(void* buffer, int32 size); 195a1d355fSStephan Aßmus 205a1d355fSStephan Aßmus status_t GetPeerAddress(NetAddress *address) const; 215a1d355fSStephan Aßmus 225a1d355fSStephan Aßmus private: 23*f0d46bd8SAdrien Destugues int32 fSocket; 245a1d355fSStephan Aßmus bool fClosed; 255a1d355fSStephan Aßmus }; 265a1d355fSStephan Aßmus 275a1d355fSStephan Aßmus #endif // NET_FS_INSECURE_CHANNEL_H 28