|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
Java Socket and Wireshark Help
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#2 (permalink) | |||||||||||||
|
Apple Doesn't Love You
|
Do you just want to view the input as hex with the text beside it? You should write a method to format it for you, but just use the String.toCharArray() method to get at the bytes.
|
|||||||||||||
|
|
|
|
#4 (permalink) | |||||||||||||
|
Apple Doesn't Love You
|
It's best not to gut the thread once the problem is solved. Leave it as is so that if anybody ever has a similar problem they can see what you asked and what people said about it.
|
|||||||||||||
|
|
|
|
#6 (permalink) | |||||||||||||
|
Apple Doesn't Love You
|
What problem are you having exactly?
|
|||||||||||||
|
|
|
|
#7 (permalink) |
|
Programmer
|
It's connecting to the server, sending a packet with no data (not a connection packet) and it's closing the socket like it should.
The problem is no data. I just want to do the same thing that was shown in the screenshot. Send 010000006a. Code:
while ((userInput = stdIn.readLine()) == null) { //Hit enter and send
out.write(?);
System.out.println("Data sent!");
}
Last edited by LyokoHaCk : 06-28-08 at 07:10 PM. |
|
|
|
|
|
#8 (permalink) | |||||||||||||
|
Apple Doesn't Love You
|
I have very little Java networking experience, sorry. If you post the relevant code I might be able to figure something out though.
|
|||||||||||||
|
|
|
|
#10 (permalink) | ||||||||||||||
|
OLPC XO developer
![]() |
Can you post your server and client code. That will help us in trying to solve your problem, as right now it can be a number of things.
__________________
"UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." - Doug Gwyn Try out the latest Programming Challenge Quote:
CPU-Z Validation @ 2.97-prime95 stable 16 hours @ 1.48v Proof | CPU-Z Validation @ 3.15 Getting Mouse Side Buttons to work in Linux, Compile a custom Kernel, More
|
||||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|