Changeset aadf01e in mainline for uspace/srv/net/tl/tcp/tcp.h
- Timestamp:
- 2010-03-07T15:13:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 936835e
- Parents:
- aa85487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/tcp.h
raa85487 raadf01e 150 150 /** Operation result. 151 151 */ 152 int 152 int result; 153 153 /** Safety lock. 154 154 */ 155 fibril_mutex_t 155 fibril_mutex_t mutex; 156 156 /** Operation result signaling. 157 157 */ 158 fibril_condvar_t 158 fibril_condvar_t condvar; 159 159 }; 160 160 … … 164 164 /** TCP socket state. 165 165 */ 166 tcp_socket_state_t 166 tcp_socket_state_t state; 167 167 /** Data fragment size. 168 168 * Sending optimalization. 169 169 */ 170 size_t 170 size_t data_fragment_size; 171 171 /** Device identifier. 172 172 */ 173 device_id_t 173 device_id_t device_id; 174 174 /** Listening backlog. 175 175 * The maximal number of connected but not yet accepted sockets. 176 176 */ 177 int 177 int backlog; 178 178 // /** Segment size. 179 179 // */ … … 182 182 * Set if this socket is an accepted one. 183 183 */ 184 int 184 int listening_socket_id; 185 185 /** Treshold size in bytes. 186 186 */ 187 size_t 187 size_t treshold; 188 188 /** Window size in bytes. 189 189 */ 190 size_t 190 size_t window; 191 191 /** Acknowledgement timeout. 192 192 */ 193 suseconds_t 193 suseconds_t timeout; 194 194 /** Last acknowledged byte. 195 195 */ 196 uint32_t 196 uint32_t acknowledged; 197 197 /** Next incoming sequence number. 198 198 */ 199 uint32_t 199 uint32_t next_incoming; 200 200 /** Incoming FIN. 201 201 */ 202 uint32_t 202 uint32_t fin_incoming; 203 203 /** Next outgoing sequence number. 204 204 */ 205 uint32_t 205 uint32_t next_outgoing; 206 206 /** Last outgoing sequence number. 207 207 */ 208 uint32_t 208 uint32_t last_outgoing; 209 209 /** Outgoing FIN. 210 210 */ 211 uint32_t 211 uint32_t fin_outgoing; 212 212 /** Expected sequence number by the remote host. 213 213 * The sequence number the other host expects. 214 214 * The notification is sent only upon a packet reecival. 215 215 */ 216 uint32_t 216 uint32_t expected; 217 217 /** Expected sequence number counter. 218 218 * Counts the number of received notifications for the same sequence number. 219 219 */ 220 int 220 int expected_count; 221 221 /** Incoming packet queue. 222 222 * Packets are buffered until received in the right order. … … 225 225 * Packets metric is set as their data length. 226 226 */ 227 packet_t 227 packet_t incoming; 228 228 /** Outgoing packet queue. 229 229 * Packets are buffered until acknowledged by the remote host in the right order. … … 232 232 * Packets metric is set as their data length. 233 233 */ 234 packet_t 234 packet_t outgoing; 235 235 /** IP pseudo header. 236 236 */ 237 ip_pseudo_header_ref 237 ip_pseudo_header_ref pseudo_header; 238 238 /** IP pseudo header length. 239 239 */ 240 size_t 240 size_t headerlen; 241 241 /** Remote host address. 242 242 */ 243 struct sockaddr * 243 struct sockaddr * addr; 244 244 /** Remote host address length. 245 245 */ 246 socklen_t 246 socklen_t addrlen; 247 247 /** Remote host port. 248 248 */ 249 uint16_t 249 uint16_t dest_port; 250 250 /** Parent local sockets. 251 251 */ 252 socket_cores_ref 252 socket_cores_ref local_sockets; 253 253 /** Local sockets safety lock. 254 254 * May be locked for writing while holding the global lock for reading when changing the local sockets only. … … 258 258 * @see tcp_globals:lock 259 259 */ 260 fibril_rwlock_t * 260 fibril_rwlock_t * local_lock; 261 261 /** Pending operation data. 262 262 */ 263 tcp_operation_t 263 tcp_operation_t operation; 264 264 /** Timeouts in a row counter. 265 265 * If TCP_MAX_TIMEOUTS is reached, the connection is lost. 266 266 */ 267 int 267 int timeout_count; 268 268 }; 269 269 … … 273 273 /** Networking module phone. 274 274 */ 275 int 275 int net_phone; 276 276 /** IP module phone. 277 277 */ 278 int 278 int ip_phone; 279 279 /** ICMP module phone. 280 280 */ 281 int 281 int icmp_phone; 282 282 /** Last used free port. 283 283 */ 284 int 284 int last_used_port; 285 285 /** Active sockets. 286 286 */ 287 socket_ports_t 287 socket_ports_t sockets; 288 288 /** Device packet dimensions. 289 289 */ 290 packet_dimensions_t 290 packet_dimensions_t dimensions; 291 291 /** Safety lock. 292 292 * Write lock is used only for adding or removing socket ports. 293 293 */ 294 fibril_rwlock_t 294 fibril_rwlock_t lock; 295 295 }; 296 296
Note:
See TracChangeset
for help on using the changeset viewer.