Changes in uspace/srv/net/tl/tcp/ucall.c [0edaf0f6:ae481e0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/ucall.c
r0edaf0f6 rae481e0 53 53 * @param fsock Foreign socket 54 54 * @param acpass Active/passive 55 * @param oflags Open flags 55 56 * @param conn Connection 56 57 * … … 65 66 */ 66 67 tcp_error_t tcp_uc_open(tcp_sock_t *lsock, tcp_sock_t *fsock, acpass_t acpass, 67 tcp_ conn_t **conn)68 tcp_open_flags_t oflags, tcp_conn_t **conn) 68 69 { 69 70 tcp_conn_t *nconn; 70 71 71 log_msg(LVL_DEBUG, "tcp_uc_open(%p, %p, %s, % p)",72 log_msg(LVL_DEBUG, "tcp_uc_open(%p, %p, %s, %s, %p)", 72 73 lsock, fsock, acpass == ap_active ? "active" : "passive", 73 conn);74 oflags == tcp_open_nonblock ? "nonblock" : "none", conn); 74 75 75 76 nconn = tcp_conn_new(lsock, fsock); … … 79 80 /* Synchronize (initiate) connection */ 80 81 tcp_conn_sync(nconn); 82 } 83 84 if (oflags == tcp_open_nonblock) { 85 *conn = nconn; 86 return TCP_EOK; 81 87 } 82 88 … … 101 107 102 108 *conn = nconn; 109 log_msg(LVL_DEBUG, "tcp_uc_open -> %p", nconn); 103 110 return TCP_EOK; 104 111 } … … 258 265 { 259 266 log_msg(LVL_DEBUG, "tcp_uc_status()"); 267 cstatus->cstate = conn->cstate; 260 268 } 261 269 … … 270 278 log_msg(LVL_DEBUG, "tcp_uc_delete()"); 271 279 tcp_conn_delete(conn); 280 } 281 282 void tcp_uc_set_cstate_cb(tcp_conn_t *conn, tcp_cstate_cb_t cb, void *arg) 283 { 284 log_msg(LVL_DEBUG, "tcp_uc_set_ctate_cb(%p, %p, %p)", 285 conn, cb, arg); 286 287 conn->cstate_cb = cb; 288 conn->cstate_cb_arg = arg; 272 289 } 273 290
Note:
See TracChangeset
for help on using the changeset viewer.