Changeset 1433ecda in mainline for uspace/srv/net/tcp
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/srv/net/tcp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/iqueue.c
r47b2d7e3 r1433ecda 110 110 link = list_first(&iqueue->list); 111 111 while (link != NULL) { 112 112 log_msg(LOG_DEFAULT, LVL_NOTE, "tcp_iqueue_remove_seg() - next"); 113 113 qe = list_get_instance(link, 114 114 tcp_iqueue_entry_t, link); … … 162 162 tcp_segment_delete(iqe->seg); 163 163 164 164 link = list_first(&iqueue->list); 165 165 if (link == NULL) { 166 166 log_msg(LOG_DEFAULT, LVL_DEBUG, "iqueue is empty"); -
uspace/srv/net/tcp/service.c
r47b2d7e3 r1433ecda 116 116 117 117 /* XXX Failed to establish connection */ 118 if (0) tcp_ev_conn_failed(cconn); 118 if (0) 119 tcp_ev_conn_failed(cconn); 119 120 } 120 121 -
uspace/srv/net/tcp/tcp.c
r47b2d7e3 r1433ecda 74 74 tcp_ncsim_fibril_start(); 75 75 76 if (0) tcp_test(); 76 if (0) 77 tcp_test(); 77 78 78 79 rc = tcp_inet_init(); -
uspace/srv/net/tcp/test.c
r47b2d7e3 r1433ecda 79 79 printf("S: User received %zu bytes '%s'.\n", rcvd, rcv_buf); 80 80 81 async_usleep(1000 *1000*2);81 async_usleep(1000 * 1000 * 2); 82 82 } 83 83 84 async_usleep(/*10**/1000 *1000);84 async_usleep(/*10**/1000 * 1000); 85 85 86 86 printf("S: User close...\n"); … … 107 107 epp.remote.port = 80; 108 108 109 async_usleep(1000 *1000*3);109 async_usleep(1000 * 1000 * 3); 110 110 printf("C: User open...\n"); 111 111 tcp_uc_open(&epp, ap_active, 0, &conn); 112 112 conn->name = (char *) "C"; 113 113 114 async_usleep(1000 *1000*10);114 async_usleep(1000 * 1000 * 10); 115 115 printf("C: User send...\n"); 116 116 tcp_uc_send(conn, (void *)msg, str_size(msg), 0); 117 117 118 async_usleep(1000 *1000*20/**20*2*/);118 async_usleep(1000 * 1000 * 20/**20*2*/); 119 119 printf("C: User close...\n"); 120 120 tcp_uc_close(conn); … … 130 130 printf("tcp_test()\n"); 131 131 132 async_usleep(1000 *1000);132 async_usleep(1000 * 1000); 133 133 134 134 if (0) {
Note:
See TracChangeset
for help on using the changeset viewer.