Class CTCPOptions Base ClassesConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: Custom Code in Header Before IncludesNext page: Custom Code in Source After Includes    Show member index
Custom Code in Header After Includes Declared in:
TCPSocket.h

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

// CSpoofSocket command target
//                                                              //
//                          TCP Header                          //
//              Implementation of RFC793 TCP Header             //
//                                                              //
typedef struct _TCPHeader
{
    unsigned short  SourcePort;
    unsigned short  DestinationPort;
    unsigned int    SequenceNumber;
    unsigned int    AcknowledgeNumber;
    unsigned char   DataOffset;     //Crappy MFC can't use bits
    unsigned char   Flags;
    unsigned short  Windows;
    unsigned short  Checksum;
    unsigned short  UrgentPointer;
} TCPHeader;
typedef TCPHeader FAR * LPTCPHeader;
#define TCPHeaderLength sizeof(TCPHeader)

//All of the TCP header flags
#define TCPFlag_URG 32
#define TCPFlag_ACK 16
#define TCPFlag_PSH 8
#define TCPFlag_RST 4
#define TCPFlag_SYN 2
#define TCPFlag_FYN 1

//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  |  Protected base class CIPOptions  |  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 © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001.