Searched refs:net_socket (Results 1 - 25 of 30) sorted by relevance

12

/haiku/headers/private/net/
H A Dnet_socket.h22 typedef struct net_socket { struct
44 } net_socket; typedef in typeref:struct:net_socket
51 net_socket** _socket);
52 status_t (*close)(net_socket* socket);
53 void (*free)(net_socket* socket);
55 status_t (*readv)(net_socket* socket, const iovec* vecs,
57 status_t (*writev)(net_socket* socket, const iovec* vecs,
59 status_t (*control)(net_socket* socket, uint32 op, void* data,
62 ssize_t (*read_avail)(net_socket* socket);
63 ssize_t (*send_avail)(net_socket* socke
[all...]
H A Dnet_stack_interface.h20 struct net_socket;
27 status_t (*open)(int family, int type, int protocol, net_socket** _socket);
28 status_t (*close)(net_socket* socket);
29 status_t (*free)(net_socket* socket);
31 status_t (*bind)(net_socket* socket, const struct sockaddr* address,
33 status_t (*shutdown)(net_socket* socket, int how);
34 status_t (*connect)(net_socket* socket, const struct sockaddr* address,
36 status_t (*listen)(net_socket* socket, int backlog);
37 status_t (*accept)(net_socket* socket, struct sockaddr* address,
38 socklen_t* _addressLength, net_socket** _acceptedSocke
[all...]
H A Dnet_protocol.h10 #include <net_socket.h>
49 net_socket* socket;
61 net_protocol* (*init_protocol)(net_socket* socket);
69 status_t (*accept)(net_protocol* self, net_socket** _acceptedSocket);
H A DProtocolUtilities.h20 #include <net_socket.h>
50 ProtocolSocket(net_socket* socket);
76 net_socket* Socket() const { return fSocket; }
79 net_socket* fSocket;
85 ProtocolSocket::ProtocolSocket(net_socket* socket)
111 net_socket* socket);
164 net_socket* socket)
H A Dnet_stack.h24 typedef struct net_socket net_socket; typedef in typeref:struct:net_socket
141 status_t (*notify_socket)(net_socket* socket, uint8 event, int32 value);
154 net_socket* socket, uint8 event, net_buffer* buffer);
/haiku/src/add-ons/kernel/network/stack/
H A Dstack_interface.cpp14 stack_interface_open(int family, int type, int protocol, net_socket** _socket)
21 stack_interface_close(net_socket* socket)
28 stack_interface_free(net_socket* socket)
36 stack_interface_bind(net_socket* socket, const struct sockaddr* address,
44 stack_interface_shutdown(net_socket* socket, int how)
51 stack_interface_connect(net_socket* socket, const struct sockaddr* address,
59 stack_interface_listen(net_socket* socket, int backlog)
66 stack_interface_accept(net_socket* socket, struct sockaddr* address,
67 socklen_t* _addressLength, net_socket** _acceptedSocket)
75 stack_interface_recv(net_socket* socke
[all...]
H A Dstack_private.h16 #include <net_socket.h>
39 status_t get_domain_protocols(net_socket* socket);
40 status_t put_domain_protocols(net_socket* socket);
H A Dnet_socket.cpp51 struct net_socket_private : net_socket,
74 int socket_bind(net_socket* socket, const struct sockaddr* address,
76 int socket_setsockopt(net_socket* socket, int level, int option,
78 ssize_t socket_read_avail(net_socket* socket);
117 TRACE("delete net_socket %p\n", this);
204 TRACE("create net_socket %p (%u.%u.%u):\n", socket, socket->family,
219 add_ancillary_data(net_socket* socket, ancillary_data_container* container,
250 process_ancillary_data(net_socket* socket, ancillary_data_container* container,
284 process_ancillary_data(net_socket* socket,
310 socket_receive_no_buffer(net_socket* socke
[all...]
H A Dutility.h52 status_t notify_socket(net_socket* socket, uint8 event, int32 value);
61 status_t fifo_socket_enqueue_buffer(net_fifo* fifo, net_socket* socket,
H A Dutility.cpp41 status_t EnqueueAndNotify(net_buffer* _buffer, net_socket* socket,
231 notify_socket(net_socket* socket, uint8 event, int32 value)
268 Fifo::EnqueueAndNotify(net_buffer* _buffer, net_socket* socket, uint8 event)
437 fifo_socket_enqueue_buffer(net_fifo* fifo, net_socket* socket, uint8 event,
H A Dlink.cpp47 LinkProtocol(net_socket* socket);
84 LinkProtocol::LinkProtocol(net_socket* socket)
298 link_init_protocol(net_socket* socket)
347 link_accept(net_protocol* protocol, struct net_socket** _acceptedSocket)
/haiku/src/add-ons/kernel/network/protocols/l2cap/
H A DL2capEndpoint.h15 #include <net_socket.h>
27 L2capEndpoint(net_socket* socket);
51 status_t Accept(net_socket** _acceptedSocket);
H A DL2capEndpoint.cpp31 L2capEndpoint::L2capEndpoint(net_socket* socket)
278 L2capEndpoint::Accept(net_socket** _acceptedSocket)
418 net_socket* newSocket;
H A Dl2cap.cpp62 l2cap_init_protocol(net_socket* socket)
139 l2cap_accept(net_protocol* protocol, struct net_socket** _acceptedSocket)
/haiku/src/add-ons/kernel/network/protocols/unix/
H A DUnixEndpoint.h18 #include <net_socket.h>
43 UnixEndpoint(net_socket* socket);
67 status_t Accept(net_socket **_acceptedSocket);
H A Dunix.cpp21 #include <net_socket.h>
65 unix_init_protocol(net_socket *socket)
123 unix_accept(net_protocol *_protocol, struct net_socket **_acceptedSocket)
H A DUnixEndpoint.cpp42 UnixEndpoint::UnixEndpoint(net_socket* socket)
347 net_socket* newSocket;
390 UnixEndpoint::Accept(net_socket **_acceptedSocket)
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp21 #include <net_socket.h>
55 struct net_socket_private : net_socket {
85 struct net_socket *gServerSocket, *gClientSocket;
261 socket_create(int family, int type, int protocol, net_socket **_socket)
269 memset(socket, 0, sizeof(net_socket));
311 socket_delete(net_socket *_socket)
325 socket_accept(net_socket *socket, struct sockaddr *address,
326 socklen_t *_addressLength, net_socket **_acceptedSocket)
328 net_socket *accepted;
346 socket_bind(net_socket *socke
[all...]
/haiku/headers/private/kernel/fs/
H A Dfd.h20 struct net_socket;
56 struct net_socket *socket;
/haiku/src/add-ons/kernel/network/protocols/icmp6/
H A Dicmp6.cpp43 icmp6_init_protocol(net_socket *socket)
90 icmp6_accept(net_protocol *protocol, struct net_socket **_acceptedSocket)
/haiku/src/add-ons/kernel/network/protocols/tcp/
H A DTCPEndpoint.h30 TCPEndpoint(net_socket* socket);
39 status_t Accept(struct net_socket** _acceptedSocket);
H A Dtcp.h16 #include <net_socket.h>
H A Dtcp.cpp451 tcp_init_protocol(net_socket* socket)
454 // override net_socket default
510 tcp_accept(net_protocol* protocol, struct net_socket** _acceptedSocket)
/haiku/src/add-ons/kernel/network/protocols/icmp/
H A Dicmp.cpp254 icmp_init_protocol(net_socket* socket)
301 icmp_accept(net_protocol* protocol, struct net_socket** _acceptedSocket)
/haiku/src/system/kernel/fs/
H A Dsocket.cpp340 create_socket_fd(net_socket* socket, bool kernel)
383 net_socket* socket;
457 net_socket* acceptedSocket;
616 net_socket* sockets[2];

Completed in 200 milliseconds

12