Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1882 | clevermous | 1 | #ifndef __MENUET_NETWORK_HPP__ |
2 | #define __MENUET_NETWORK_HPP__ |
||
3 | |||
4 | #include |
||
5 | |||
6 | class IP_Address |
||
7 | { |
||
8 | public: |
||
9 | unsigned long this_ip_inet_fmt; |
||
10 | IP_Address(unsigned long); |
||
11 | IP_Address(__u8,__u8,__u8,__u8); |
||
12 | ~IP_Address(); |
||
13 | unsigned long operator = (IP_Address&); |
||
14 | IP_Address& operator = (unsigned long); |
||
15 | }; |
||
16 | |||
17 | class UDP_Socket |
||
18 | { |
||
19 | public: |
||
20 | UDP_Socket(__u32 local_port,__u32 remote_port,__u32 remote_ip,bool close_on_delete); |
||
21 | virtual ~UDP_Socket(); |
||
22 | virtual int Open(); |
||
23 | virtual int Close(); |
||
24 | virtual int Read(__u8 * data); |
||
25 | virtual int Write(int count,void * data); |
||
26 | virtual int Poll(); |
||
27 | protected: |
||
28 | unsigned long p[3]; |
||
29 | bool f; |
||
30 | int sock; |
||
31 | }; |
||
32 | |||
33 | #endif |