Changes in uspace/lib/c/generic/net/socket_client.c [6b82009:77ad86c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/net/socket_client.c
r6b82009 r77ad86c 44 44 #include <errno.h> 45 45 #include <task.h> 46 #include <ns.h> 46 47 #include <ipc/services.h> 47 48 #include <ipc/socket.h> 48 #include <net/modules.h>49 49 #include <net/in.h> 50 50 #include <net/socket.h> … … 283 283 static async_sess_t *socket_get_tcp_sess(void) 284 284 { 285 if (socket_globals.tcp_sess == NULL) {286 socket_globals.tcp_sess = bind_service(SERVICE_TCP,285 if (socket_globals.tcp_sess == NULL) 286 socket_globals.tcp_sess = service_bind(SERVICE_TCP, 287 287 0, 0, SERVICE_TCP, socket_connection); 288 } 289 288 290 289 return socket_globals.tcp_sess; 291 290 } … … 300 299 static async_sess_t *socket_get_udp_sess(void) 301 300 { 302 if (socket_globals.udp_sess == NULL) {303 socket_globals.udp_sess = bind_service(SERVICE_UDP,301 if (socket_globals.udp_sess == NULL) 302 socket_globals.udp_sess = service_bind(SERVICE_UDP, 304 303 0, 0, SERVICE_UDP, socket_connection); 305 } 306 304 307 305 return socket_globals.udp_sess; 308 306 } … … 378 376 * @return Other error codes as defined for the NET_SOCKET message. 379 377 * @return Other error codes as defined for the 380 * bind_service() function.378 * service_bind() function. 381 379 */ 382 380 int socket(int domain, int type, int protocol)
Note:
See TracChangeset
for help on using the changeset viewer.