Relative Content

Tag Archive for sockets

How much overhead is there in persistent connections?

Ok so I’m musing over a little side project I want to start. Essentially its a multi-session web based FTP client. Multi-session in that you can log into several FTP servers at the same time and perform operations like moving a file from one FTP server to another.

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.

What to choose API based server or Socket based server for data driven application

I am working on a project which has a Desktop Application for MAC/COCOA, a native application for iPhone another native application in iPad. All the application do almost same thing. The applications are data driven applications. Every communication to server is made via a restful API developed in PHP.
When a user logs in a lot of data is fetched from server. And to remain in sync with server polling is done.
As there are lot of data to poll it makes application slower and un-reliable.

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.

Creating a remote management interface

I’m looking for info on creating a remote management interface for our software. This is not anything illicit. Our software is for live TV production and once they go on-air we can’t access the PC (usually through LogMeIn).