tcp

Which TCP port does Erlang use for connecting to a remote node?

I need to open a firewall port so that I can connect from one Erlang node to another. Is there a standard port? ...

Amazon S3 - S3sync full TCP buffer

Sending files via a cron to S3, the files send but the TCP buffer fills up and does not clear/empty which causes chaos with the server services. this is the line in plesk panel (like in the other post): tcpsndbuf 2,712,477 2,867,477 bytes Total size of buffers used to send data over TCP network connections in the plesk help...

Dealing with data on multiple TCP connections with epoll

I have an application that is going to work like a p2p-software where all peer are going to talk to each other. Since the communication will be TCP i thought that I could use epool(4) so that multiple connections can be handled. Since each peer will send data very often, I thought that I will establish a persistent connection to each pee...

Is there a way to save a reassembled TCP in Wireshark

I am trying so sniff a multi-part POST request using Wireshark. When viewing the capture I can select "Reassembled TCP" which looks to contain the header and all the data in the transmission. However I can't seem to select the entire thing to save it. If I go back to the frame view i can select the frame, which usually selects the entire...

any python socket server framework?

Hi, I'm looking for a python socket server framework - not to handle http, but to handle tcp sockets. I've done it myself, but adding all the features is tedious. This framework would handle thread pooling, socket setup, signal handling, etc. A big feature is code-reloading. If I use apache/mod_python, or django, or whatever, I don't h...

Terminate an inactive socket connection from TIdTCPServer

We have an application which listens for incoming TCP requests using the Indy 10.1.1 components that ship with Delphi 2007. Occassionally we receive incoming connections which are not from our client application. Typically, one of two things happens: 1) the connection is terminated by the client before any data is received, or 2) data i...

build a tcp server to test asihttp

Hi, I am working on iphone networking application.. I am using asihttp , a wrapper of the CFnetwork framework. http://allseeing-i.com/ASIHTTPRequest/ I want to build a server that sends some data on request from the client... I want this for the sole purpose of testing the application i write and understanding the networking more deep...

Sanity Check - Is a Multiplayer Game Server in Java using TCP (ServerSocket) viable?

Hey Guys, Please stop me before I make a big mistake :) - I'm trying to write a simple multi-player quiz game for Android phones to get some experience writing server code. I have never written server code before. I have experience in Java and using Sockets seems like the easiest option for me. A browser game would mean platform indep...

How should I mark the end of a TCP packet?

In a client/server application were text data of varying length will be sent back and forth between the client and server, how should I mark the end of a packet that is being sent? For example, when the server is receiving packet data from a client how does the server know that the client packet has fully been received? Is it more commo...

TCP: Address already in use exception - possible causes for client port? NO PORT EXHAUSTION

Hello, stupid problem. I get those from a client connecting to a server. Sadly, the setup is complicated making debugging complex - and we run out of options. The environment: *Client/Server system, both running on the same machine. The client is actually a service doing some database manipulation at specific times. * The cnonection co...

TCP/UDP and ethernet MTU Fragmentation

I've read various sites and tutorials online but I am still confused. If the message is bigger than IP MTU, then send() returns the byte sent. What happens to the rest of the message? Am I to call send() again and attempt to send rest of the message? Or is that something IP layer should take care of automatically? ...

Do the Nagle Algorith and Delayed ACK's affect TCP Connection Setup?

Do the client's SYN and the servers SYN+ACK get delayed by Nagle? Will the client's ACK of the server's SYN get delayed? Will connect return after rtt+spt or will it take rtt + spt + 2x Nagle Delay? Or more generally, how do the Nagle Algorith and Delayed ACK's affect TCP Connection Setup? ...

Can 'connect' call on socket return sucessfully without server calling 'accept'?

Server has created a socket and bound to a port and started a thread which is in loop to accept the connection. Sometime later loop exited due to an exception resulting in thread exit but socket is still bounded to port. Now if client does a 'connect' to this server, it is succeeding. How is it possible? If I understand correctly, 'conne...

tcp application exit will send FIN always?

Hi, When a TCP application exits it will send a FIN packet. Consider a tcp client which get connected to a always listening server(server never exits). if the tcp client is exiting abruptly after few exchange of packets, will it always send a FIN packet to the server? Thx! ...

TCP, HTTP and the Multi-Threading Sweet Spot

I'm trying to understand the performance numbers I'm getting and how to determine the optimal number of threads. See the bottom of this post for my results I wrote an experimental multi-threaded web client in perl which downloads a page, grabs the source for each image tag and downloads the image - discarding the data. It uses a non...

"Can´t open socket or connection refused" with .NET

Im getting a connection refused when I try to send some data to my server app using netcat. server side: IPAddress ip; ip = Dns.GetHostEntry("localhost").AddressList[0]; IPEndPoint ipFinal = new IPEndPoint(ip, 12345); Socket socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp); socket.Bind(ipFinal); so...

boost::asio tcp async_read never returns

I am trying to convert some existing code to use boost's asio tcp sockets instead of our current implementation. I am able to get a very similar example (of a chat client/server) from the boost site working, but when I attempt to put the code into my own program it stops working. What I am doing: Start a server process The server p...

Is it possible to make a persistent connection between a Python web service and a .Net WCF Client?

I have a .Net 3.5 SOAP client written in C# using the WCF. It's expecting basicHTTPBinding and a persistent connection with HTTP/1.1. I'm trying to create a Python 2.6 application that will act as a web-service for the client. My problem is that the client keeps closing the connection and opening a new one for every command to the web...

How to read an incoming tcp stream until a delimiter is found?

How do you read an incoming tcp stream until a specific delimiter is found in C#? The only possible solution I have come up with is reading the incoming stream one byte at a time. ...

Tcp Socket Closed

I always thought that if you didn't implement a heartbeat, there was no way to know if one side of a TCP connection died unexpectedly. If the process was just killed on one side and didn't exit gracefully, there was no way for the socket to send FIN or let the other side know that it was closed. (See some of the comments here for examp...