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

Function create_socket

test/connect.c:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static unsigned int use_addr;
26
27static int create_socket(void)
28{
29 int fd;
30
31 fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
32 if (fd == -1) {
33 perror("socket()");
34 return -1;
35 }
36
37 return fd;
38}
39
40static int submit_and_wait(struct io_uring *ring, int *res)
41{

Callers 3

test_connectFunction · 0.85
test_connect_timeoutFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_connectFunction · 0.68
test_connect_timeoutFunction · 0.68