• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to manipulate the transport layer protocols

 
M. Sunil
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to delay the sending of an ACK in TCP for a FIN( socket close) from a client. How can i go about doing that
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably not. Java is specifically targeted at programming applications so it abstracts out all those lower-level details. If it is possible, it would probably be documented here.
 
M. Sunil
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there some kind of a listener we can register to find out the packets we receive and then manually send all the packets and prevent the protocol layer from sending the packets
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Joe said, that's abstracted away. Maybe a JNI-based library like jpcap gives you enough control to achieve that.
 
M. Sunil
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but jpcap libraries are for packet sniffing. Does it allow me to disable tcp layer responding to the client.[like sending the ACK]
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jpcap can send packet also, but I really don't think it is going to work, unless you use the library to mimic all of TCP functionality, and even then the OS is probably going to get in your way.

Maybe there is an OS setting to change the ACK delay.

 
mahmoud adel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well you will find in jpcap a method called setfilter this method helps you to choose the only active protocol needed on capturing like tcp / udp or whatever go javadocs and search for it a bit and you will find it
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!