Skip to content
Advertisement

Tag: tcp

Efficient way to extract protocol data units from tcp byte stream

I’ve had two java projects (simple multiplayer games) that relied on a byte-based connection-oriented protocol for communication. In both cases I was unhappy with the implementation of the communication, since I couldn’t come up with an intelligent, non-verbose and object-orientied way of writing and especially parsing the bytes. For writing I had something like That was acceptable to some extent,

Java TCP Client/Server

I have a problem which I do not know how to proceed further in Java TCP socket issue. So far as what we can get from the Internet, it’s not hard to get quite a number of working solution for TCP server & client communication in Java. However, most of the example will have their server listen to a port,

java.net.ConnectException: Connection refused

I’m trying to implement a TCP connection, everything works fine from the server’s side but when I run the client program (from client computer) I get the following error: I tried changing the socket number in case it was in use but to no avail, does anyone know what is causing this error & how to fix it. The Server

Java, server client TCP communication ends with RST

I’m trying to figure out if this is normal. Because without errors, a connection should be terminated by: I get this at the end of a TCP connection (over SSL, but i also get it with non-encrypted): The client exits normally and reaches socket.close, shouldn’t then the connection be shut down normally, without a reset? I can’t find anything about

Advertisement