Webserver+3d print
Embed:
(wiki syntax)
Show/hide line numbers
tcp_fsm.h
Go to the documentation of this file.
00001 /** 00002 * @file tcp_fsm.h 00003 * @brief TCP finite state machine 00004 * 00005 * @section License 00006 * 00007 * Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved. 00008 * 00009 * This file is part of CycloneTCP Open. 00010 * 00011 * This program is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * as published by the Free Software Foundation; either version 2 00014 * of the License, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software Foundation, 00023 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00024 * 00025 * @author Oryx Embedded SARL (www.oryx-embedded.com) 00026 * @version 1.7.6 00027 **/ 00028 00029 #ifndef _TCP_FSM_H 00030 #define _TCP_FSM_H 00031 00032 //Dependencies 00033 #include "core/tcp.h" 00034 00035 //TCP FSM related functions 00036 void tcpProcessSegment(NetInterface *interface, 00037 IpPseudoHeader *pseudoHeader, const NetBuffer *buffer, size_t offset); 00038 00039 void tcpStateClosed(NetInterface *interface, 00040 IpPseudoHeader *pseudoHeader, TcpHeader *segment, size_t length); 00041 00042 void tcpStateListen(Socket *socket, NetInterface *interface, 00043 IpPseudoHeader *pseudoHeader, TcpHeader *segment, size_t length); 00044 00045 void tcpStateSynSent(Socket *socket, TcpHeader *segment, size_t length); 00046 00047 void tcpStateSynReceived(Socket *socket, TcpHeader *segment, 00048 const NetBuffer *buffer, size_t offset, size_t length); 00049 00050 void tcpStateEstablished(Socket *socket, TcpHeader *segment, 00051 const NetBuffer *buffer, size_t offset, size_t length); 00052 00053 void tcpStateCloseWait(Socket *socket, TcpHeader *segment, size_t length); 00054 00055 void tcpStateLastAck(Socket *socket, TcpHeader *segment, size_t length); 00056 00057 void tcpStateFinWait1(Socket *socket, TcpHeader *segment, 00058 const NetBuffer *buffer, size_t offset, size_t length); 00059 00060 void tcpStateFinWait2(Socket *socket, TcpHeader *segment, 00061 const NetBuffer *buffer, size_t offset, size_t length); 00062 00063 void tcpStateClosing(Socket *socket, TcpHeader *segment, size_t length); 00064 00065 void tcpStateTimeWait(Socket *socket, TcpHeader *segment, size_t length); 00066 00067 #endif 00068
Generated on Tue Jul 12 2022 17:10:17 by
