Class CTCPSocket Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: Custom Code in Header Before IncludesNext page: Custom Code in Header After Class Declaration    Show member index
Custom Code in Header After Includes Declared in:
TCPSocket.h

'Custom Code' icon -- Shortcut to top of page. Custom Code

KOMODIA_NAMESPACE_START
/////////////////////////////////////////////////////////////////////////////
// CSpoofSocket command target
//////////////////////////////////////////////////////////////////
//                                                              //
//                          TCP Header                          //
//              Implementation of RFC793 TCP Header             //
//                                                              //
//////////////////////////////////////////////////////////////////

typedef struct _TCPHeader
{
    unsigned short  usSourcePort;
    unsigned short  usDestinationPort;
    unsigned long   ulSequenceNumber;
    unsigned long   ulAcknowledgeNumber;
    unsigned char   ucDataOffset;       //Crappy MFC can't use bits
    unsigned char   ucFlags;
    unsigned short  usWindows;
    unsigned short  usChecksum;
    unsigned short  usUrgentPointer;
} TCPHeader;
typedef TCPHeader FAR * LPTCPHeader;
#define TCPHeaderLength sizeof(TCPHeader)

//All of the TCP header flags
#define TCPFlag_URG 0x20
#define TCPFlag_ACK 0x10
#define TCPFlag_PSH 0x08
#define TCPFlag_RST 0x04
#define TCPFlag_SYN 0x02
#define TCPFlag_FYN 0x01

//TCP Options
#define TCPOptions_END 0
#define TCPOptions_NO_OPERATION 1
#define TCPOptions_MAX_Segment 2

//Max segment size
#define TCPOptions_MAX_Segment_Length 4

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CSpoofSocket  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.