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

Changeset bf7587b0 in mainline


Ignore:
Timestamp:
2015-05-18T21:23:32Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
2f19103
Parents:
683e584
Message:

Delete connection and prevent further callbacks.

Location:
uspace/srv
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/remcons/remcons.c

    r683e584 rbf7587b0  
    363363
    364364        inet_ep_init(&ep);
    365         ep.port = 8080;
     365        ep.port = 2223;
    366366
    367367        rc = tcp_listener_create(tcp, &ep, &listen_cb, NULL, &conn_cb, NULL,
  • uspace/srv/net/tcp/conn.c

    r683e584 rbf7587b0  
    237237
    238238        assert(conn->deleted == false);
     239        conn->deleted = true;
     240        conn->cb = NULL;
     241        conn->cb_arg = NULL;
    239242        tcp_conn_delref(conn);
    240243}
  • uspace/srv/net/tcp/service.c

    r683e584 rbf7587b0  
    405405
    406406        tcp_uc_close(cconn->conn);
     407        tcp_uc_delete(cconn->conn);
    407408        tcp_cconn_destroy(cconn);
    408409        return EOK;
Note: See TracChangeset for help on using the changeset viewer.