my dog learned polymorphism
The moose likes Sockets and Internet Protocols and the fly likes Is it possible to manipulate the transport layer protocols Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Is it possible to manipulate the transport layer protocols" Watch "Is it possible to manipulate the transport layer protocols" New topic
Author

Is it possible to manipulate the transport layer protocols

M. Sunil
Greenhorn

Joined: Mar 24, 2009
Posts: 8
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

Joined: Oct 29, 2001
Posts: 8262

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
M. Sunil
Greenhorn

Joined: Mar 24, 2009
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
As Joe said, that's abstracted away. Maybe a JNI-based library like jpcap gives you enough control to achieve that.


Android appsImageJ pluginsJava web charts
M. Sunil
Greenhorn

Joined: Mar 24, 2009
Posts: 8
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

Joined: Jan 03, 2006
Posts: 490
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.



"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
mahmoud adel
Greenhorn

Joined: May 10, 2009
Posts: 4
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to manipulate the transport layer protocols
 
Similar Threads
Cant use object from another class
Posting to bump up my count...
WA #1.....word association
The x900 effect ?
Text box value is not being completely filled with request attribute