Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Is it possible to manipulate the transport layer protocols

 
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
 
Bartender
Posts: 9612
16
Mac OS X Linux 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
 
Rancher
Posts: 43016
76
  • 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]
 
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.

 
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
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic