/haiku/headers/private/net/ |
H A D | net_stat.h | 11 #include <sys/socket.h>
|
/haiku/headers/posix/sys/ |
H A D | socket.h | 53 #define SO_ACCEPTCONN 0x00000001 /* socket has had listen() */ 71 #define SO_TYPE 0x40000008 /* get socket type */ 73 #define SO_BINDTODEVICE 0x4000000a /* binds the socket to a specific device index */ 81 #define SOMAXCONN 32 /* Max listen queue for a socket */ 124 #define MSG_NOSIGNAL 0x0800 /* don't raise SIGPIPE if socket is closed */ 165 int accept(int socket, struct sockaddr *address, socklen_t *_addressLength); 166 int bind(int socket, const struct sockaddr *address, 168 int connect(int socket, const struct sockaddr *address, 170 int getpeername(int socket, struct sockaddr *address, 172 int getsockname(int socket, struc [all...] |
/haiku/src/bin/network/route/ |
H A D | route.cpp | 16 #include <sys/socket.h> 162 list_routes(int socket, const char *interfaceName, route_entry &route) argument 168 if (ioctl(socket, SIOCGRTSIZE, &config, sizeof(struct ifconf)) < 0) 183 if (ioctl(socket, SIOCGRTTABLE, &config, sizeof(struct ifconf)) < 0) 190 // called on a socket for a single family) 295 delete_route(int socket, const char *interface, route_entry &route) argument 303 if (ioctl(socket, SIOCDELRT, &request, sizeof(request)) < 0) { 311 add_route(int socket, const char *interface, route_entry &route) argument 320 if (ioctl(socket, SIOCADDRT, &request, sizeof(request)) < 0) { 328 get_route(int socket, route_entr argument 517 int socket = ::socket(kFamilies[familyIndex].family, SOCK_DGRAM, 0); local 549 int socket = ::socket(kFamilies[i].family, SOCK_DGRAM, 0); local [all...] |
/haiku/src/tests/add-ons/kernel/network/ |
H A D | userland_ipc.c | 11 #include "sys/socket.h" 77 struct socket; /* forward declaration */ 82 struct socket * socket; member in struct:__anon2040 92 // for socket select events support 170 on_socket_event(void * socket, uint32 event, void * cookie) argument 179 if (cc->socket != socket) { 180 printf("on_socket_event(%p, %ld, %p): socket is higly suspect! Aborting.\n", socket, even [all...] |
/haiku/src/bin/network/traceroute/ |
H A D | findsaddr-haiku.c | 16 #include <sys/socket.h> 29 int sock = socket(AF_INET, SOCK_DGRAM, 0); 31 return "socket() failed";
|
/haiku/src/tests/system/network/icmp/ |
H A D | tcp_unreachable.cpp | 15 #include <sys/socket.h> 35 sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
/haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/ |
H A D | InsecureChannel.h | 12 InsecureChannel(int socket);
|
/haiku/headers/posix/net/ |
H A D | route.h | 9 #include <sys/socket.h>
|
/haiku/src/system/libnetwork/netresolv/ |
H A D | port_after.h | 6 #include <sys/socket.h>
|
/haiku/src/kits/network/libnetapi/ |
H A D | Socket.cpp | 66 BSocket* socket = new(std::nothrow) BSocket(); 67 if (socket == NULL) { 72 socket->_SetTo(fd, fLocal, peer); 73 _socket = socket;
|
H A D | NetworkInterface.cpp | 40 FileDescriptorCloser socket(::socket(family, SOCK_DGRAM, 0)); 41 if (!socket.IsSet()) 56 if (ioctl(socket.Get(), option, &request, sizeof(struct ifaliasreq)) < 0) 82 FileDescriptorCloser socket(::socket(family, SOCK_DGRAM, 0)); 83 if (!socket.IsSet()) 88 if (ioctl(socket.Get(), option, &request, sizeof(T)) < 0) 367 FileDescriptorCloser socket(::socket(addres [all...] |
/haiku/src/servers/net/ |
H A D | DHCPClient.h | 50 status_t _StateTransition(int socket, dhcp_state& state); 56 status_t _SendMessage(int socket, dhcp_message& message, 59 bool _TimeoutShift(int socket, dhcp_state& state,
|
/haiku/src/system/boot/loader/net/ |
H A D | UDP.cpp | 278 UDPSocket *socket = fSockets.ElementAt(i); local 279 socket->Detach(); 330 // find the target socket 331 UDPSocket *socket = _FindSocket(destinationIP, destination); local 332 if (socket == NULL) 335 // create a UDPPacket and queue it in the socket 343 socket->PushPacket(packet); 392 UDPService::BindSocket(UDPSocket *socket, ip_addr_t address, uint16 port) argument 394 if (socket == NULL) 402 return fSockets.Add(socket); 407 UnbindSocket(UDPSocket *socket) argument 455 UDPSocket *socket = fSockets.ElementAt(i); local [all...] |
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/ |
H A D | nbd-server.py | 3 import struct, socket, sys 38 "Buffered socket wrapper; always returns the amount of data you want." 52 "Debugging socket wrapper." 84 "Decodes an NBD request off the TCP socket." 130 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 131 sock.setsockopt(socket.SOL_SOCKET, socket [all...] |
/haiku/src/tests/kits/net/service/ |
H A D | proxy.py | 16 import socket namespace 150 server.server_port = server.socket.getsockname()[1] 155 server.socket = socket.fromfd( 157 socket.AF_INET, 158 socket.SOCK_STREAM) 193 help='A socket FD to use for accept() instead of binding a new one.')
|
/haiku/src/tests/kits/net/netservices2/ |
H A D | proxy.py | 16 import socket namespace 150 server.server_port = server.socket.getsockname()[1] 155 server.socket = socket.fromfd( 157 socket.AF_INET, 158 socket.SOCK_STREAM) 193 help='A socket FD to use for accept() instead of binding a new one.')
|
/haiku/src/system/libnetwork/ |
H A D | r5_compatibility.cpp | 26 int closesocket(int socket); 62 closesocket(int socket) argument 64 return close(socket);
|
/haiku/headers/private/drivers/ |
H A D | ksocket.h | 9 #include <sys/socket.h> 13 #define ksocket socket 35 /* Haiku now has kernel calls for those, no need for a socket module anymore. */ 37 #define ksocket socket 59 /* BONE socket module */ 63 #define ksocket (gSocket->socket) 64 //#define ksocket(_fam, _typ, _pro) ({int thesock; thesock = (gSocket->socket)(_fam, _typ, _pro); dprintf("ksocket(%d, %d, %d) = %d\n", _fam, _typ, _pro, thesock); thesock;})
|
/haiku/src/add-ons/kernel/file_systems/netfs/shared/ |
H A D | InsecureChannel.cpp | 6 # include <socket.h> 10 # include <sys/socket.h> 22 InsecureChannel::InsecureChannel(int socket) argument 24 fSocket(socket), 27 // set socket to blocking (with BONE a connection socket seems to inherit 28 // the non-blocking property of the listener socket)
|
/haiku/src/add-ons/kernel/file_systems/nfs/ |
H A D | ksocket.h | 9 #include <sys/socket.h> 13 #define ksocket socket 35 /* Haiku socket module */ 39 #define ksocket (gSocket->socket) 72 /* BONE socket module */ 76 #define ksocket (gSocket->socket) 77 //#define ksocket(_fam, _typ, _pro) ({int thesock; thesock = (gSocket->socket)(_fam, _typ, _pro); dprintf("ksocket(%d, %d, %d) = %d\n", _fam, _typ, _pro, thesock); thesock;})
|
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | ksocket.h | 9 #include <sys/socket.h> 13 #define ksocket socket 35 #define ksocket socket 57 /* BONE socket module */ 61 #define ksocket (gSocket->socket) 62 //#define ksocket(_fam, _typ, _pro) ({int thesock; thesock = (gSocket->socket)(_fam, _typ, _pro); dprintf("ksocket(%d, %d, %d) = %d\n", _fam, _typ, _pro, thesock); thesock;})
|
/haiku/src/tests/system/network/ |
H A D | unix_send_test.c | 3 #include <sys/socket.h>
|
H A D | unix_recv_test.c | 3 #include <sys/socket.h>
|
/haiku/src/add-ons/kernel/network/protocols/l2cap/ |
H A D | L2capEndpointManager.cpp | 49 gSocketModule->acquire_socket(endpoint->socket); 62 gSocketModule->release_socket(endpoint->socket); 93 gSocketModule->acquire_socket(endpoint->socket); 108 gSocketModule->release_socket(endpoint->socket);
|
/haiku/src/add-ons/kernel/network/protocols/unix/ |
H A D | UnixStreamEndpoint.cpp | 31 UnixStreamEndpoint::UnixStreamEndpoint(net_socket* socket) argument 33 UnixEndpoint(socket), 189 gSocketModule->set_max_backlog(socket, backlog); 282 // Allocate FIFOs for us and the socket we're going to spawn. We do that 296 error = gSocketModule->spawn_pending_socket(listeningEndpoint->socket, 312 PeerAddress().SetTo(&connectedEndpoint->socket->address); 344 bigtime_t timeout = absolute_timeout(socket->receive.timeout); 362 error = gSocketModule->dequeue_connected(socket, _acceptedSocket); 387 timeout = absolute_timeout(socket->send.timeout); 437 gSocketModule->notify(peerEndpoint->socket, B_SELECT_REA [all...] |