Changeset 032bbe7 in mainline for uspace/srv/net/tl/tcp/rqueue.c
- Timestamp:
- 2011-09-22T19:53:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32105348
- Parents:
- 0093ab6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/rqueue.c
r0093ab6 r032bbe7 32 32 33 33 /** 34 * @file 34 * @file Global segment receive queue 35 35 */ 36 36 … … 40 40 #include <stdlib.h> 41 41 #include <thread.h> 42 #include "conn.h" 42 43 #include "rqueue.h" 43 44 #include "state.h" … … 46 47 static prodcons_t rqueue; 47 48 49 /** Initialize segment receive queue. */ 48 50 void tcp_rqueue_init(void) 49 51 { … … 54 56 * 55 57 * This is for testing purposes only. 58 * 59 * @param sp Socket pair, oriented for transmission 60 * @param seg Segment 56 61 */ 57 62 void tcp_rqueue_bounce_seg(tcp_sockpair_t *sp, tcp_segment_t *seg) … … 62 67 63 68 /* Reverse the identification */ 64 rident.local = sp->foreign; 65 rident.foreign = sp->local; 69 tcp_sockpair_flipped(sp, &rident); 66 70 67 71 tcp_rqueue_insert_seg(&rident, seg); 68 72 } 69 73 74 /** Insert segment into receive queue. 75 * 76 * @param sp Socket pair, oriented for reception 77 * @param seg Segment 78 */ 70 79 void tcp_rqueue_insert_seg(tcp_sockpair_t *sp, tcp_segment_t *seg) 71 80 { … … 85 94 } 86 95 96 /** Receive queue handler thread. */ 87 97 static void tcp_rqueue_thread(void *arg) 88 98 { … … 100 110 } 101 111 112 /** Start receive queue handler thread. */ 102 113 void tcp_rqueue_thread_start(void) 103 114 {
Note:
See TracChangeset
for help on using the changeset viewer.