Automatic whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42008 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ebf7c28a0b
commit
ace7983115
@ -58,24 +58,24 @@ BNetEndpoint::BNetEndpoint(BMessage* archive)
|
|||||||
in_addr addr, peer;
|
in_addr addr, peer;
|
||||||
unsigned short addrPort = 0, peerPort = 0;
|
unsigned short addrPort = 0, peerPort = 0;
|
||||||
|
|
||||||
fStatus = archive->FindInt32("_BNetEndpoint_addr_addr",
|
fStatus = archive->FindInt32("_BNetEndpoint_addr_addr",
|
||||||
(int32 *)&addr.s_addr);
|
(int32 *)&addr.s_addr);
|
||||||
if (fStatus == B_OK) {
|
if (fStatus == B_OK) {
|
||||||
fStatus = archive->FindInt16("_BNetEndpoint_addr_port",
|
fStatus = archive->FindInt16("_BNetEndpoint_addr_port",
|
||||||
(int16 *)&addrPort);
|
(int16 *)&addrPort);
|
||||||
if (fStatus == B_OK)
|
if (fStatus == B_OK)
|
||||||
fStatus = fAddr.SetTo(addr, addrPort);
|
fStatus = fAddr.SetTo(addr, addrPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
fStatus = archive->FindInt32("_BNetEndpoint_peer_addr",
|
fStatus = archive->FindInt32("_BNetEndpoint_peer_addr",
|
||||||
(int32 *)&peer.s_addr);
|
(int32 *)&peer.s_addr);
|
||||||
if (fStatus == B_OK) {
|
if (fStatus == B_OK) {
|
||||||
fStatus = archive->FindInt16("_BNetEndpoint_peer_port",
|
fStatus = archive->FindInt16("_BNetEndpoint_peer_port",
|
||||||
(int16 *)&peerPort);
|
(int16 *)&peerPort);
|
||||||
if (fStatus == B_OK)
|
if (fStatus == B_OK)
|
||||||
fStatus = fPeer.SetTo(peer, peerPort);
|
fStatus = fPeer.SetTo(peer, peerPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
fStatus = archive->FindInt64("_BNetEndpoint_timeout", (int64 *)&fTimeout);
|
fStatus = archive->FindInt64("_BNetEndpoint_timeout", (int64 *)&fTimeout);
|
||||||
if (fStatus == B_OK)
|
if (fStatus == B_OK)
|
||||||
fStatus = archive->FindInt32("_BNetEndpoint_proto", (int32 *)&fType);
|
fStatus = archive->FindInt32("_BNetEndpoint_proto", (int32 *)&fType);
|
||||||
@ -110,7 +110,7 @@ BNetEndpoint::operator=(const BNetEndpoint& endpoint)
|
|||||||
{
|
{
|
||||||
if (this == &endpoint)
|
if (this == &endpoint)
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
Close();
|
Close();
|
||||||
|
|
||||||
fStatus = endpoint.fStatus;
|
fStatus = endpoint.fStatus;
|
||||||
@ -455,7 +455,7 @@ BNetEndpoint::Accept(int32 timeout)
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
BNetEndpoint::IsDataPending(bigtime_t timeout)
|
BNetEndpoint::IsDataPending(bigtime_t timeout)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
fd_set fds;
|
fd_set fds;
|
||||||
|
|
||||||
@ -609,13 +609,13 @@ status_t BNetEndpoint::InitCheck()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const BNetAddress& BNetEndpoint::LocalAddr()
|
const BNetAddress& BNetEndpoint::LocalAddr()
|
||||||
{
|
{
|
||||||
return const_cast<const BNetEndpoint*>(this)->LocalAddr();
|
return const_cast<const BNetEndpoint*>(this)->LocalAddr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const BNetAddress& BNetEndpoint::RemoteAddr()
|
const BNetAddress& BNetEndpoint::RemoteAddr()
|
||||||
{
|
{
|
||||||
return const_cast<const BNetEndpoint*>(this)->RemoteAddr();
|
return const_cast<const BNetEndpoint*>(this)->RemoteAddr();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user