On my project, we have been writing our own IP header parsing code for some time now. I'm starting to wonder if our time could be spent better elsewhere. A google ... |
I have a bug which is caused by fragmented packets. I would like test this bug by creating a fragmented packet in the test and sending it to the software ... |
As it is defined (see: http://www.freesoft.org/CIE/Course/Section4/8.htm) the TCP header has an 'Options' field. There are a couple of options already defined (see: www.iana.org/assignments/tcp-parameters/) but I want to come up ... |
i m creating connection oriented server/client(TCP) socket.i have created whole server socket and i have written packet on server socket successfully and i have created client socket also but i m ... |
i m creating connection oriented server/client(TCP) socket.i have created whole server socket and i have written packet on server socket successfully and i have created client socket also but i m ... |
What should be used for a mmo game in java. UDP or TCP? And why? TCP is a point-to-point relationship and carries every packet through while UDP has no point-to-point relationship ... |
I'm writing this tiny utility method to test sending raw packets to a specific messaging network (planning on developing a client to connect to it).
The network is the Deviantart messaging network ... |
|
I want to attempt to calculate how much data (bytes) I send/receive over the network. I send/receive both TCP and UDP packets, so I need to be able to calculate the ... |
I'm changing a C++ client to a Java version - just an exercise I'm trying more than anything else.
The orginal C++ code works perfectly well. The Servce side sends a ... |
After sending some tcp data by any method (mine is below)
DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
outToServer.writeBytes(string);
How can I verify in JAVA that TCP data is sent successfully? OR is there any way ... |
I am writing a Java TCP client which sends chunks of data to a C server. The client-server worked very well on my development PC. This code upon deployment on a ... |
This post is related to Ensuring no packet loss between TCP client and server where I have posted the code for C server(see answer) and Java client which is working ... |
I want to create a TCP SYN Packet with the jpcap library.
The problem is that netresearch.ics.uci.edu is down, which seems to be the only source for tutorials, examples etc. Where can ... |
Hi Hari, Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a first and last name to comply with the JavaRanch Naming Policy. You can change it here. Thank you for your cooperation. Java is not well suited for ... |
|
|
Yes, they're on the same level with respect to ISO/OSI, but TCP has features UDP doesn't - so you can't easily convert a UDP stream to a TCP stream. I'm not sure what socat does, but Java doesn't have access to raw TCP or UDP packets anyway; you'd need to resort to a JNI-based solution. |
Hello all, i hv configured a simple server-client using a TCP protocol. basically, Server replied to client request. it works fine. Now, if i would like to demonstrate the packet loss occur in the server side... how to do that? could someone provide a simple example on how this could be done? Thanks Gents. Audrea. |
|
hELLO, I use tcp for transfering a java object I serialise first tne object and then I send it, to the server but the server receive multiple mesages he read byte from input stream but he must know when stopping and unmarshalling to java object and read the followinng perhapas we ca add delimiters ( begin and end) but then I ... |
Socket doesn't ACK TCP packets Please se the following image showing a CommWiev logging of a TCP session: [http://ingvild.novatron.no/TCP%20Session%2024112011_1043.PNG] As you may see at the bottom of the logging, it ends up with the server side (right side) sending packet after packet but the Socket (left side) stops ACK'ing the packtes after some time. Finally, the server has sent the last ... |