Changes in uspace/srv/net/udp/ucall.c [a1a101d:141a20d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/ucall.c
ra1a101d r141a20d 47 47 udp_assoc_t *nassoc; 48 48 49 log_msg(L OG_DEFAULT, LVL_DEBUG, "udp_uc_create()");49 log_msg(LVL_DEBUG, "udp_uc_create()"); 50 50 nassoc = udp_assoc_new(NULL, NULL); 51 51 if (nassoc == NULL) … … 59 59 udp_error_t udp_uc_set_foreign(udp_assoc_t *assoc, udp_sock_t *fsock) 60 60 { 61 log_msg(L OG_DEFAULT, LVL_DEBUG, "udp_uc_set_foreign(%p, %p)", assoc, fsock);61 log_msg(LVL_DEBUG, "udp_uc_set_foreign(%p, %p)", assoc, fsock); 62 62 63 63 udp_assoc_set_foreign(assoc, fsock); … … 67 67 udp_error_t udp_uc_set_local(udp_assoc_t *assoc, udp_sock_t *lsock) 68 68 { 69 log_msg(L OG_DEFAULT, LVL_DEBUG, "udp_uc_set_local(%p, %p)", assoc, lsock);69 log_msg(LVL_DEBUG, "udp_uc_set_local(%p, %p)", assoc, lsock); 70 70 71 71 udp_assoc_set_local(assoc, lsock); … … 79 79 udp_msg_t msg; 80 80 81 log_msg(L OG_DEFAULT, LVL_DEBUG, "%s: udp_uc_send()", assoc->name);81 log_msg(LVL_DEBUG, "%s: udp_uc_send()", assoc->name); 82 82 83 83 msg.data = data; … … 103 103 int rc; 104 104 105 log_msg(L OG_DEFAULT, LVL_DEBUG, "%s: udp_uc_receive()", assoc->name);105 log_msg(LVL_DEBUG, "%s: udp_uc_receive()", assoc->name); 106 106 rc = udp_assoc_recv(assoc, &msg, fsock); 107 log_msg(LVL_DEBUG, "udp_assoc_recv -> %d", rc); 107 108 switch (rc) { 109 case EOK: 110 break; 111 case ECONNABORTED: 112 return UDP_ERESET; 113 default: 114 assert(false); 108 115 } 109 116 … … 118 125 void udp_uc_status(udp_assoc_t *assoc, udp_assoc_status_t *astatus) 119 126 { 120 log_msg(L OG_DEFAULT, LVL_DEBUG, "udp_uc_status()");127 log_msg(LVL_DEBUG, "udp_uc_status()"); 121 128 // cstatus->cstate = conn->cstate; 122 129 } … … 124 131 void udp_uc_destroy(udp_assoc_t *assoc) 125 132 { 126 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_uc_destroy()"); 133 log_msg(LVL_DEBUG, "udp_uc_destroy()"); 134 udp_assoc_reset(assoc); 127 135 udp_assoc_remove(assoc); 128 136 udp_assoc_delete(assoc); 137 } 138 139 void udp_uc_reset(udp_assoc_t *assoc) 140 { 141 udp_assoc_reset(assoc); 129 142 } 130 143
Note:
See TracChangeset
for help on using the changeset viewer.