MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vhost_user_server_new_connection

Function vhost_user_server_new_connection

dpdk/lib/vhost/socket.c:299–310  ·  view source on GitHub ↗

call back when there is new vhost-user connection from client */

Source from the content-addressed store, hash-verified

297
298/* call back when there is new vhost-user connection from client */
299static void
300vhost_user_server_new_connection(int fd, void *dat, int *remove __rte_unused)
301{
302 struct vhost_user_socket *vsocket = dat;
303
304 fd = accept(fd, NULL, NULL);
305 if (fd < 0)
306 return;
307
308 VHOST_LOG_CONFIG(vsocket->path, INFO, "new vhost user connection is %d\n", fd);
309 vhost_user_add_connection(fd, vsocket);
310}
311
312static void
313vhost_user_read_cb(int connfd, void *dat, int *remove)

Callers

nothing calls this directly

Calls 2

acceptFunction · 0.50

Tested by

no test coverage detected