MCPcopy Create free account
hub / github.com/axboe/liburing / create_sockets

Function create_sockets

test/socket-io-cmd.c:28–39  ·  view source on GitHub ↗

Create 2 sockets (tx, rx) given the socket type */

Source from the content-addressed store, hash-verified

26
27/* Create 2 sockets (tx, rx) given the socket type */
28static struct fds create_sockets(bool stream)
29{
30 struct fds retval;
31 int fd[2];
32
33 t_create_socket_pair(fd, stream);
34
35 retval.tx = fd[0];
36 retval.rx = fd[1];
37
38 return retval;
39}
40
41static int create_sqe_and_submit(struct io_uring *ring, int32_t fd, int op)
42{

Callers 1

run_testFunction · 0.70

Calls 1

t_create_socket_pairFunction · 0.85

Tested by

no test coverage detected