Changeset 779541b in mainline for uspace/srv/net/tcp/ucall.c


Ignore:
Timestamp:
2015-05-09T13:43:50Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1d4b815
Parents:
99ea91b2
Message:

TCP transport layer API - somewhat working.

File:
1 edited

Legend:

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

    r99ea91b2 r779541b  
    188188        /* Wait for data to become available */
    189189        while (conn->rcv_buf_used == 0 && !conn->rcv_buf_fin && !conn->reset) {
     190                tcp_conn_unlock(conn);
     191                return TCP_EAGAIN;
    190192                log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_receive() - wait for data");
    191193                fibril_condvar_wait(&conn->rcv_buf_cv, &conn->lock);
     
    294296}
    295297
    296 void tcp_uc_set_cstate_cb(tcp_conn_t *conn, tcp_cstate_cb_t cb, void *arg)
    297 {
    298         log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_set_ctate_cb(%p, %p, %p)",
     298void tcp_uc_set_cb(tcp_conn_t *conn, tcp_cb_t *cb, void *arg)
     299{
     300        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_set_cb(%p, %p, %p)",
    299301            conn, cb, arg);
    300302
    301         conn->cstate_cb = cb;
    302         conn->cstate_cb_arg = arg;
     303        conn->cb = cb;
     304        conn->cb_arg = arg;
    303305}
    304306
Note: See TracChangeset for help on using the changeset viewer.