Changeset ecff3d9 in mainline for uspace/srv/tcp/tcp.c


Ignore:
Timestamp:
2012-02-01T22:06:05Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
59157eb
Parents:
c76e926
Message:

Implement inet client IPC communication. Fix bug in inet_init().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/tcp/tcp.c

    rc76e926 recff3d9  
    186186
    187187        rc = inet_init(42, &tcp_inet_ev_ops);
    188         if (rc != EOK)
     188        if (rc != EOK) {
     189                log_msg(LVL_ERROR, "Failed connecting to internet service.");
    189190                return ENOENT;
     191        }
    190192
    191193        rc = tcp_sock_init();
    192         if (rc != EOK)
     194        if (rc != EOK) {
     195                log_msg(LVL_ERROR, "Failed initializing socket service.");
    193196                return ENOENT;
     197        }
    194198
    195199        return EOK;
     
    208212        }
    209213
    210         tcp_init();
     214        rc = tcp_init();
     215        if (rc != EOK)
     216                return 1;
     217
     218        printf(NAME ": Accepting connections.\n");
    211219        task_retval(0);
    212220        async_manager();
Note: See TracChangeset for help on using the changeset viewer.