Searched refs:peer (Results 1 - 25 of 31) sorted by relevance

12

/haiku/src/kits/network/libnetapi/
H A DSocket.cpp26 BSocket::BSocket(const BNetworkAddress& peer, bigtime_t timeout) argument
28 Connect(peer, timeout);
52 BSocket::Connect(const BNetworkAddress& peer, bigtime_t timeout) argument
54 return BAbstractSocket::Connect(peer, SOCK_STREAM, timeout);
62 BNetworkAddress peer; local
63 status_t error = AcceptNext(fd, peer);
72 socket->_SetTo(fd, fLocal, peer);
112 const BNetworkAddress& peer)
119 fPeer = peer;
123 peer
111 _SetTo(int fd, const BNetworkAddress& local, const BNetworkAddress& peer) argument
[all...]
H A DProxySecureSocket.cpp20 BProxySecureSocket::BProxySecureSocket(const BNetworkAddress& proxy, const BNetworkAddress& peer, argument
26 Connect(peer, timeout);
44 BProxySecureSocket::Connect(const BNetworkAddress& peer, bigtime_t timeout) argument
56 peer.HostName().String(), peer.Port());
H A DDatagramSocket.cpp25 BDatagramSocket::BDatagramSocket(const BNetworkAddress& peer, bigtime_t timeout) argument
27 Connect(peer, timeout);
58 BDatagramSocket::Connect(const BNetworkAddress& peer, bigtime_t timeout) argument
60 return BAbstractSocket::Connect(peer, SOCK_DGRAM, timeout);
77 BDatagramSocket::SetPeer(const BNetworkAddress& peer) argument
79 fPeer = peer;
H A DSecureSocket.cpp421 BSecureSocket::BSecureSocket(const BNetworkAddress& peer, bigtime_t timeout) argument
426 Connect(peer, timeout);
456 BNetworkAddress peer; local
457 status_t error = AcceptNext(fd, peer);
467 socket->_SetTo(fd, fLocal, peer);
480 BSecureSocket::Connect(const BNetworkAddress& peer, bigtime_t timeout) argument
486 status = BSocket::Connect(peer, timeout);
490 return _SetupConnect(peer.HostName().String());
653 BSecureSocket::BSecureSocket(const BNetworkAddress& peer, bigtime_t timeout) argument
687 BSecureSocket::Connect(const BNetworkAddress& peer, bigtime_ argument
[all...]
H A DAbstractSocket.cpp216 BAbstractSocket::Connect(const BNetworkAddress& peer, int type, argument
221 fInitStatus = _OpenIfNeeded(peer.Family(), type);
227 local.SetToWildcard(peer.Family());
233 BNetworkAddress normalized = peer;
244 TRACE("%p: connected to %s (local %s)\n", this, peer.ToString().c_str(),
H A DNetEndpoint.cpp58 in_addr addr, peer;
71 (int32 *)&peer.s_addr);
76 fStatus = fPeer.SetTo(peer, peerPort);
172 in_addr addr, peer;
183 status = fPeer.GetAddr(peer, &peerPort);
185 status = into->AddInt32("_BNetEndpoint_peer_addr", peer.s_addr);
/haiku/headers/os/net/
H A DDatagramSocket.h15 BDatagramSocket(const BNetworkAddress& peer,
20 virtual status_t Bind(const BNetworkAddress& peer,
22 virtual status_t Connect(const BNetworkAddress& peer,
28 void SetPeer(const BNetworkAddress& peer);
H A DSocket.h15 BSocket(const BNetworkAddress& peer,
20 virtual status_t Bind(const BNetworkAddress& peer,
25 virtual status_t Connect(const BNetworkAddress& peer,
36 const BNetworkAddress& peer);
H A DProxySecureSocket.h16 const BNetworkAddress& peer,
23 virtual status_t Connect(const BNetworkAddress& peer,
H A DAbstractSocket.h30 virtual status_t Connect(const BNetworkAddress& peer,
53 status_t Connect(const BNetworkAddress& peer, int type,
H A DSecureSocket.h18 BSecureSocket(const BNetworkAddress& peer,
32 virtual status_t Connect(const BNetworkAddress& peer,
/haiku/src/tests/system/network/
H A Dudp_connect.cpp52 sockaddr_in peer; local
53 peer.sin_family = AF_INET;
54 peer.sin_addr.s_addr = inet_addr(peerAddress);
55 peer.sin_port = htons(sReceiveMode ? 0 : 8888);
56 if (connect(fd, (sockaddr*)&peer, sizeof(peer)) != 0)
/haiku/headers/private/net/
H A Dnet_stat.h25 struct sockaddr_storage peer; member in struct:net_stat
H A Dnet_socket.h31 struct sockaddr_storage peer; member in struct:net_socket
H A DProtocolUtilities.h66 &fSocket->peer); }
70 &fSocket->peer); }
/haiku/src/add-ons/kernel/network/protocols/tcp/
H A DEndpointManager.h76 TCPEndpoint* FindConnection(sockaddr* local, sockaddr* peer);
79 const sockaddr* local, const sockaddr* peer,
99 const sockaddr* peer);
H A DEndpointManager.cpp82 out.Print("tcp:e:%p connect local %s, peer %s", fEndpoint, fLocal,
114 out.Print("tcp:e:%p unbind, local %s, peer %s", fEndpoint, fLocal,
252 EndpointManager::_LookupConnection(const sockaddr* local, const sockaddr* peer) argument
254 return fConnectionHash.Lookup(std::make_pair(local, peer));
260 const sockaddr* peer, const sockaddr* interfaceLocal)
275 if (_LookupConnection(*local, peer) != NULL)
279 endpoint->PeerAddress().SetTo(peer);
315 EndpointManager::FindConnection(sockaddr* local, sockaddr* peer) argument
319 TCPEndpoint *endpoint = _LookupConnection(local, peer);
573 kprintf("%10s %21s %21s %8s %8s %12s\n", "address", "local", "peer",
259 SetConnection(TCPEndpoint* endpoint, const sockaddr* _local, const sockaddr* peer, const sockaddr* interfaceLocal) argument
[all...]
H A DTCPEndpoint.h106 status_t _PrepareSendPath(const sockaddr* peer);
/haiku/src/tests/system/network/tcptester/
H A Dtcptester.cpp226 sockaddr_in peer;
227 socklen_t peerLen = sizeof(peer);
229 int newSock = accept(sock, (sockaddr *)&peer, &peerLen);
236 inet_ntop(AF_INET, &peer.sin_addr, buf, sizeof(buf));
/haiku/src/add-ons/kernel/network/protocols/l2cap/
H A Dl2cap_address.cpp387 const sockaddr_l2cap *peer = (const sockaddr_l2cap *)peerAddress; local
389 return ((our ? our->l2cap_psm : 0) | ((peer ? peer->l2cap_psm : 0) << 16))
391 ^ (peer ? L2CAP_CHECKSUM(peer->l2cap_bdaddr) : 0);
/haiku/src/add-ons/kernel/network/protocols/ipv4/
H A Dipv4_address.cpp483 const sockaddr_in *peer = (const sockaddr_in *)peerAddress; local
486 bool havePeer = peer && peer->sin_len != 0;
490 | ((havePeer ? peer->sin_port : 0) << 16))
492 ^ (havePeer ? peer->sin_addr.s_addr : 0);
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_socket.cpp101 peer.ss_len = 0;
490 if (socket->peer.ss_len == 0)
516 memcpy(buffer->destination, &socket->peer, socket->peer.ss_len);
663 memcpy(&stat->peer, &socket->peer, sizeof(struct sockaddr_storage));
732 memcpy(&socket->peer, &parent->peer, parent->peer.ss_len);
992 memcpy(address, &accepted->peer, min_
[all...]
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_send.c363 struct sockaddr_storage peer; local
379 peerlen = sizeof(peer);
381 (struct sockaddr *)(void *)&peer, &peerlen) < 0) {
385 if (!sock_eq((struct sockaddr *)(void *)&peer,
670 struct sockaddr_storage peer; local
671 ISC_SOCKLEN_T size = sizeof peer;
674 (struct sockaddr *)(void *)&peer, &size) < 0 ||
675 !sock_eq((struct sockaddr *)(void *)&peer, nsap)) {
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp335 memcpy(address, &accepted->peer, min_c(*_addressLength,
336 accepted->peer.ss_len));
337 *_addressLength = accepted->peer.ss_len;
410 if (socket->peer.ss_len == 0)
433 memcpy(buffer->destination, &socket->peer, socket->peer.ss_len);
491 memcpy(&socket->peer, &parent->peer, parent->peer.ss_len);
1191 printf("server: peer close
[all...]
/haiku/src/bin/network/ifconfig/
H A Difconfig.cpp85 " peer <addr> - ppp-peer address\n"
720 BNetworkAddress peer; local
728 if (!strcmp(args[i], "peer")) {
729 if (!parse_address(family, args[i + 1], peer)) {
730 fprintf(stderr, "%s: Option 'peer' needs valid address "
844 || !broadcast.IsEmpty() || !peer.IsEmpty())) {
849 // set address/mask/broadcast/peer
857 else if (!peer.IsEmpty())
858 interfaceAddress.SetDestination(peer);
[all...]

Completed in 174 milliseconds

12