Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 141a20d in mainline for uspace/srv/net/udp/ucall.c


Ignore:
Timestamp:
2012-08-13T10:40:17Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
a1e2df13
Parents:
e5e73af
Message:

Terminate UDP receive fibril when socket is closed.

File:
1 edited

Legend:

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

    re5e73af r141a20d  
    105105        log_msg(LVL_DEBUG, "%s: udp_uc_receive()", assoc->name);
    106106        rc = udp_assoc_recv(assoc, &msg, fsock);
     107        log_msg(LVL_DEBUG, "udp_assoc_recv -> %d", rc);
    107108        switch (rc) {
     109        case EOK:
     110                break;
     111        case ECONNABORTED:
     112                return UDP_ERESET;
     113        default:
     114                assert(false);
    108115        }
    109116
     
    125132{
    126133        log_msg(LVL_DEBUG, "udp_uc_destroy()");
     134        udp_assoc_reset(assoc);
    127135        udp_assoc_remove(assoc);
    128136        udp_assoc_delete(assoc);
     137}
     138
     139void udp_uc_reset(udp_assoc_t *assoc)
     140{
     141        udp_assoc_reset(assoc);
    129142}
    130143
Note: See TracChangeset for help on using the changeset viewer.