By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,783 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,783 IT Pros & Developers. It's quick & easy.

parameters that must be included to send a TCP IP packet

100+
P: 126
Expand|Select|Wrap|Line Numbers
  1. 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?
Feb 8 '13 #1
Share this Question
Share on Google+
1 Reply


100+
P: 126
I hope i'm right,

Expand|Select|Wrap|Line Numbers
  1. //TCPPacket p=new TCPPacket(src_port,dst_port, sequence, ack_num, urg, ack, psh, rst, syn, fin, rsv1, 
  2. rsv2, window, urgent_pointer);
  3.  
  4. TCPPacket p=new TCPPacket(12,34,56,78,false,false,false,false,true,true,true,
  5. true,10,10);
obtained from link http://en.wikipedia.org/wiki/Transmi...ntrol_Protocol
Feb 8 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.