Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
#include
2
 
3
IP_Address::IP_Address(unsigned long addr)
4
{
5
 this_ip_inet_fmt=addr;
6
}
7
 
8
IP_Address::IP_Address(__u8 p1,__u8 p2,__u8 p3,__u8 p4)
9
{
10
 this_ip_inet_fmt=p4;
11
 this_ip_inet_fmt<<=8;
12
 this_ip_inet_fmt|=p3;
13
 this_ip_inet_fmt<<=8;
14
 this_ip_inet_fmt|=p2;
15
 this_ip_inet_fmt<<=8;
16
 this_ip_inet_fmt|=p1;
17
}
18
 
19
IP_Address::~IP_Address()
20
{
21
}
22
 
23
unsigned long IP_Address::operator = (IP_Address& a)
24
{
25
 return a.this_ip_inet_fmt;
26
}
27
 
28
IP_Address& IP_Address::operator = (unsigned long a)
29
{
30
 this->this_ip_inet_fmt=a;
31
 return *this;
32
}