Changeset b1bd89ea in mainline for uspace/srv/net/tcp/sock.c


Ignore:
Timestamp:
2012-04-24T16:15:41Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
76983ff, bc03679
Parents:
32fef47
Message:

get rid of net/modules.{c|h}

File:
1 edited

Legend:

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

    r32fef47 rb1bd89ea  
    4242#include <ipc/services.h>
    4343#include <ipc/socket.h>
    44 #include <net/modules.h>
    4544#include <net/socket.h>
    4645#include <ns.h>
     
    144143        sock->sock_core = sock_core;
    145144
    146         refresh_answer(&answer, NULL);
    147145        SOCKET_SET_SOCKET_ID(answer, sock_id);
    148146
    149147        SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE);
    150148        SOCKET_SET_HEADER_SIZE(answer, sizeof(tcp_header_t));
    151         answer_call(callid, EOK, &answer, 3);
     149       
     150        async_answer_3(callid, EOK, IPC_GET_ARG1(answer),
     151            IPC_GET_ARG2(answer), IPC_GET_ARG3(answer));
    152152}
    153153
     
    468468        assert(asock_core != NULL);
    469469
    470         refresh_answer(&answer, NULL);
    471 
    472470        SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE);
    473471        SOCKET_SET_SOCKET_ID(answer, asock_id);
    474472        SOCKET_SET_ADDRESS_LENGTH(answer, sizeof(struct sockaddr_in));
    475 
    476         answer_call(callid, asock_core->socket_id, &answer, 3);
    477 
     473       
     474        async_answer_3(callid, asock_core->socket_id,
     475            IPC_GET_ARG1(answer), IPC_GET_ARG2(answer),
     476            IPC_GET_ARG3(answer));
     477       
    478478        /* Push one fragment notification to client's queue */
    479479        log_msg(LVL_DEBUG, "tcp_sock_accept(): notify data\n");
     
    559559        }
    560560
    561         refresh_answer(&answer, NULL);
     561        IPC_SET_ARG1(answer, 0);
    562562        SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE);
    563         answer_call(callid, EOK, &answer, 2);
     563        async_answer_2(callid, EOK, IPC_GET_ARG1(answer),
     564            IPC_GET_ARG2(answer));
    564565        fibril_mutex_unlock(&socket->lock);
    565566}
     
    679680
    680681        SOCKET_SET_READ_DATA_LENGTH(answer, length);
    681         answer_call(callid, EOK, &answer, 1);
    682 
     682        async_answer_1(callid, EOK, IPC_GET_ARG1(answer));
     683       
    683684        /* Push one fragment notification to client's queue */
    684685        tcp_sock_notify_data(sock_core);
Note: See TracChangeset for help on using the changeset viewer.