Changeset 04cd242 in mainline
- Timestamp:
- 2011-11-27T18:20:58Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4ee3ab2
- Parents:
- 762b48a
- Location:
- uspace
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/errno.h
r762b48a r04cd242 96 96 #define ENOTCONN (-10057) 97 97 98 #define ECONNREFUSED (-10058) 99 98 100 /** The requested operation was not performed. Try again later. */ 99 101 #define EAGAIN (-11002) -
uspace/srv/net/tl/tcp/Makefile
r762b48a r04cd242 40 40 segment.c \ 41 41 seq_no.c \ 42 sock.c \ 42 43 tcp.c \ 43 44 test.c \ -
uspace/srv/net/tl/tcp/tcp.c
r762b48a r04cd242 55 55 #include "pdu.h" 56 56 #include "rqueue.h" 57 #include "sock.h" 57 58 #include "std.h" 58 59 #include "tcp.h" … … 61 62 #define NAME "tcp" 62 63 63 staticasync_sess_t *net_sess;64 async_sess_t *net_sess; 64 65 static async_sess_t *icmp_sess; 65 66 static async_sess_t *ip_sess; 66 staticpacket_dimensions_t pkt_dims;67 packet_dimensions_t pkt_dims; 67 68 68 69 static void tcp_received_pdu(tcp_pdu_t *pdu); … … 354 355 size_t *answer_count) 355 356 { 357 async_sess_t *callback; 358 356 359 log_msg(LVL_DEBUG, "tl_message()"); 360 361 *answer_count = 0; 362 callback = async_callback_receive_start(EXCHANGE_SERIALIZE, call); 363 if (callback) 364 return tcp_sock_connection(callback, callid, *call); 365 357 366 return ENOTSUP; 358 367 } -
uspace/srv/net/tl/tcp/tcp.h
r762b48a r04cd242 36 36 #define TCP_H 37 37 38 #include <async.h> 39 #include <packet_remote.h> 38 40 #include "tcp_type.h" 39 41 42 extern async_sess_t *net_sess; 40 43 extern void tcp_transmit_pdu(tcp_pdu_t *); 41 44 -
uspace/srv/net/tl/tcp/tcp_type.h
r762b48a r04cd242 37 37 38 38 #include <adt/list.h> 39 #include <async.h> 39 40 #include <bool.h> 40 41 #include <fibril_synch.h> 42 #include <socket_core.h> 41 43 #include <sys/types.h> 42 44 … … 288 290 } tcp_pdu_t; 289 291 292 typedef struct { 293 async_sess_t *sess; 294 socket_cores_t sockets; 295 } tcp_client_t; 296 297 typedef struct { 298 tcp_client_t *client; 299 tcp_conn_t *conn; 300 } tcp_sockdata_t; 301 290 302 #endif 291 303 -
uspace/srv/net/tl/tcp/test.c
r762b48a r04cd242 124 124 } 125 125 126 rc = thread_create(test_cli, NULL, "test_cli", &cli_tid); 127 if (rc != EOK) { 128 printf("Failed to create client thread.\n"); 129 return; 126 if (0) { 127 rc = thread_create(test_cli, NULL, "test_cli", &cli_tid); 128 if (rc != EOK) { 129 printf("Failed to create client thread.\n"); 130 return; 131 } 130 132 } 131 133 }
Note:
See TracChangeset
for help on using the changeset viewer.