xref: /haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/InsecureChannel.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 // InsecureChannel.h
2 
3 #ifndef NET_FS_INSECURE_CHANNEL_H
4 #define NET_FS_INSECURE_CHANNEL_H
5 
6 #include "Channel.h"
7 
8 class NetAddress;
9 
10 class InsecureChannel : public Channel {
11 public:
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 
22 private:
23 			int32				fSocket;
24 			bool				fClosed;
25 };
26 
27 #endif	// NET_FS_INSECURE_CHANNEL_H
28