Changeset 78bb04b in mainline for uspace/lib/c/generic/inet


Ignore:
Timestamp:
2015-08-22T14:11:58Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0dd16778
Parents:
fc22069
Message:

introduce ports for callback connections

Location:
uspace/lib/c/generic/inet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/tcp.c

    rfc22069 r78bb04b  
    6666
    6767        aid_t req = async_send_0(exch, TCP_CALLBACK_CREATE, NULL);
    68         int rc = async_connect_to_me(exch, 0, 0, 0, tcp_cb_conn, tcp);
     68       
     69        port_id_t port;
     70        int rc = async_create_callback_port(exch, INTERFACE_TCP_CB, 0, 0,
     71            tcp_cb_conn, tcp, &port);
     72       
    6973        async_exchange_end(exch);
    7074
  • uspace/lib/c/generic/inet/udp.c

    rfc22069 r78bb04b  
    5353
    5454        aid_t req = async_send_0(exch, UDP_CALLBACK_CREATE, NULL);
    55         int rc = async_connect_to_me(exch, 0, 0, 0, udp_cb_conn, udp);
     55       
     56        port_id_t port;
     57        int rc = async_create_callback_port(exch, INTERFACE_UDP_CB, 0, 0,
     58            udp_cb_conn, udp, &port);
     59       
    5660        async_exchange_end(exch);
    5761
Note: See TracChangeset for help on using the changeset viewer.