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

Function ff_ngctl

lib/ff_ngctl.c:108–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int
109ff_ngctl(int cmd, void *data)
110{
111 switch(cmd) {
112 case NGCTL_SOCKET:
113 return ngctl_socket((struct socket_args *)data);
114 case NGCTL_CONNECT:
115 return ngctl_connect((struct connect_args *)data);
116 case NGCTL_BIND:
117 return ngctl_bind((struct bind_args *)data);
118 case NGCTL_SEND:
119 return ngctl_sendto((struct sendto_args *)data);
120 case NGCTL_RECV:
121 return ngctl_recvfrom((struct recvfrom_args *)data);
122 case NGCTL_CLOSE:
123 return ngctl_close(*(int *)data);
124 default:
125 break;
126 }
127
128 ff_os_errno(EINVAL);
129 return (-1);
130}
131

Callers 1

handle_ngctl_msgFunction · 0.85

Calls 7

ngctl_socketFunction · 0.85
ngctl_connectFunction · 0.85
ngctl_bindFunction · 0.85
ngctl_sendtoFunction · 0.85
ngctl_recvfromFunction · 0.85
ngctl_closeFunction · 0.85
ff_os_errnoFunction · 0.85

Tested by

no test coverage detected