parameters that must be included to send a TCP IP packet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PreethiGowri
    New Member
    • Oct 2012
    • 126

    parameters that must be included to send a TCP IP packet

    Code:
    TCPPacket p=new TCPPacket(12,34,56,78,false,false,false,false,true,true,true,true,10,10);
    I just have a idea that we are sending port numbers, flags as parameters in the above line but,
    Can somebody tell me what are the flags and parameters exactly are we sending in the above line?
  • PreethiGowri
    New Member
    • Oct 2012
    • 126

    #2
    I hope i'm right,

    Code:
    //TCPPacket p=new TCPPacket(src_port,dst_port, sequence, ack_num, urg, ack, psh, rst, syn, fin, rsv1, 
    rsv2, window, urgent_pointer);
    
    TCPPacket p=new TCPPacket(12,34,56,78,false,false,false,false,true,true,true,
    true,10,10);
    obtained from link http://en.wikipedia.org/wiki/Transmi...ntrol_Protocol

    Comment

    Working...