Relative Content

Tag Archive for networking

Setting source IP with posix sockets

Is it possible for an application to request a socket (tcp) and have it set the source address without using raw sockets? (the addresses would be bound to the interfaces. [no spoofing]).
This would be a tcp client connection, not bind()ing to a specified address.

Difference between a socket and a port

Could someone please explain quite clearly the difference between a port and a socket. I know that a port serves as a door into the network for an application
process and that the application process uses a socket connection to the given port number to handle network communication but when you have multiple processes listening on a single port number, I am finding it difficult to understand the difference between the socket and the port and how they all fit together.

What happens when an unexpected packet arrives at a computer? [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. I have been wondering this for a few […]

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

How to better performance [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]

Game Netplay Rollback System

Can one explain the specifics and details of a netplay framework for a game that optimizes connection through a “prediction / rollback” mechanic, as seen in games where speed is a priority (first-person shooters, modern fighting games since Street Fighter IV, etc)?

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.