Is it possible to send and receive the RST flag from TCP using Java? If is, I would be grateful for some example code.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it’s not possible. Java interacts with networking at a different level to the
RSTflags.Java allows you to create Sockets with TCP so you are interacting at the Session Level (Layer 5 in the OSI Model).
RST flags are handled by the TCP stack as part of the Transport. So this is usually part of the OS and not handled by the Java VM at all.
The idea is that usually when you’re writing code you can create your sockets and not care too much about exactly how they work. If you really want to do some low level network troubleshooting you’re going to have to use something other than Java.