Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/net/socket_client.c

    r77ad86c r6b82009  
    4444#include <errno.h>
    4545#include <task.h>
    46 #include <ns.h>
    4746#include <ipc/services.h>
    4847#include <ipc/socket.h>
     48#include <net/modules.h>
    4949#include <net/in.h>
    5050#include <net/socket.h>
     
    283283static async_sess_t *socket_get_tcp_sess(void)
    284284{
    285         if (socket_globals.tcp_sess == NULL)
    286                 socket_globals.tcp_sess = service_bind(SERVICE_TCP,
     285        if (socket_globals.tcp_sess == NULL) {
     286                socket_globals.tcp_sess = bind_service(SERVICE_TCP,
    287287                    0, 0, SERVICE_TCP, socket_connection);
    288        
     288        }
     289
    289290        return socket_globals.tcp_sess;
    290291}
     
    299300static async_sess_t *socket_get_udp_sess(void)
    300301{
    301         if (socket_globals.udp_sess == NULL)
    302                 socket_globals.udp_sess = service_bind(SERVICE_UDP,
     302        if (socket_globals.udp_sess == NULL) {
     303                socket_globals.udp_sess = bind_service(SERVICE_UDP,
    303304                    0, 0, SERVICE_UDP, socket_connection);
    304        
     305        }
     306
    305307        return socket_globals.udp_sess;
    306308}
     
    376378 * @return              Other error codes as defined for the NET_SOCKET message.
    377379 * @return              Other error codes as defined for the
    378  *                      service_bind() function.
     380 *                      bind_service() function.
    379381 */
    380382int socket(int domain, int type, int protocol)
Note: See TracChangeset for help on using the changeset viewer.