Relative Content

Tag Archive for sockets

Realtime (almost) bidrectional communication in Java

I will explain the context of the problem first. For a University project I’m going to implement an Android application. The Android application (and others) will be able to send data to a remote source, that remote source will also be able to send messages to the Android applications. For example the messages may be “apply configuration x”, “what is your status”. I want the remote source to be able to send these messages to:

Sockets intricacies in TCP and UDP

I am quite familiar with TCP and UDP. I understand the process by which TCP establishes connections and other theoretical facts about TCP but when reading up about TCP hole punching for NAT Transversal, I have become stumped by how connect(), accept() and listen() is done in TCP. Is it a single or multiple sockets that are used for all this in TCP and is is this done the same way in UDP

Writing a TCP protocol or use HTTP for file transfer?

I want to write a server side application which allows several users to exchange files (not above 3MB) in the following way: user A connects to (server) S. User B connects to S. User C connects S. User A sends a file. Users B and C “see” that a file was/is being uploaded and start downloading it.

Server distribution for high performance

I’ve developed a Socket Application on top of TCP in .NET C#, which allows many clients to send files from one another via a VPS I’m using. Most file transfers will occur between people in the same region, say, even in the same neighborhood.

UDP order of packets with direct connection

If i have two systems (A and B) running on LAN(INTRANET) which are directly connected. There are no routers in the middle. In this case, if system A sends a few UDP packets every few milliseconds to system B:

Protocol for closing a socket connection

I’m rolling my own application protocol on top of TCP. I’m using Linux and C. I’m wondering whether there is an advisable sequence to closing a socket connection.