tcp

What shall we do to get C# Silverlight Tcp Packet in one piece?

When we send a large amount of data to the client,its ReceiveAsync event is being called more than one time and in each time we get a few piece of the packet. What shall we do to get C# Silverlight Tcp Packet in one piece and through one event? Thank you in advance. ...

WCF duplex communication

I need to re-write an existing client-server application. The existing application communicate using socket, I have to convert it into WCF. At server side I need to Monitor connected clients Validate client request Broadcast live data (comming from diff source). Listen to client and respond to it At client end I need to Receive...

TCP keepalive sent almost right after connection.

I'm trying to implement an persistent TCP connection between an Android phone and a desktop server. I've got heartbeat threads on both ends which are sending keepalive-packets on application level successfully. The problem is that after a while (varies between 5-20min) the phone is starting to send TCP keepalives to the server, which t...

TCP P2P without server

Hello,is it possible to write TCP P2P program without server? When I was googling this question I found something about NAT traversal,UPnP, can I use them somehow? ...

Is there a way to detect that TCP connection has been refused using flash.net.Socket?

There is a flash movie which is using flash.net.Socket to connect to a server. But there could be a situation when the server is not running, hence nothing is listening on the port socket is connecting to. When I do "telnet hostname port" I get a fast connection refused error. But flash.net.Socket does not invoke any event (see below),...

Half-Open TCP Connections limit on windows XP SP2

Does the Windows XP SP2 limit of 10 half-open connections refers only to embryonic connections or also to the other known type of half-open connection which happens when one side has crashed? Thanks.. ...

How to write a server using existing version and wireshark?

I decided to improve my knowledge about python network programming and here is the deal: I have a simple server for Windows, which interacts with a client from a mobile device using wi-fi. Also I have a packet sniffer (Wireshark). Now I want to ask, what do I need to write the Linux version of this server? How to determine the structure ...

saving the xml data over network tcp

I have devices. Each one sends data to (server IP-address) over a particular port in a random time. Because it's an alarm device and it’s possible that more than one device fired in the same time. The data is in XML Format. Now I already got a small windows application which listen for the data But I got a few problems 1 problem i...

How can I know if the message has been sent by Tcp Socket in C# without client reply?

How can I know if the message has been sent by Tcp Socket in C# without client reply? ...

Handling different sized packets using sockets in C

Hello, which is the beast approach to send packets that can be of different size using TCP sockets in C? I wonder because we're trying to write a multiplayer games that needs a protocol which has many kinds of packets of different sizes.. according to recv documentation I can get how many bytes have been read but how should I manage to ...

Sniffing and displaying TCP packets in UTF-8

Hi everyone, I am trying to use tcpdump to display the content of tcp packets flowing on my network. I have something like: tcpdump -i wlan0 -l -A The -A option displays the content as ASCII text, but my text seems to be UTF-8. Is there a way to display UTF-8 properly using tcpdump? Do you know any other tools which could help? Many...

instant messaging program - works with 127.0.0.1, but not with other computers

I have followed a tutorial on http://www.codeproject.com/KB/IP/beginningtcp_cpp.aspxt which teaches how to use winsockets with c++, i finally managed to get my program to work, by testing wiht 127.0.0.1, i can open two process instances of my program and then make one listen on port (700) and then connect to it with the other program on...

XML-RPC Python, Server Contact Client

Hi - I am trying to create a client-server application with XML-RPC in Python, in Ubuntu Linux. It is straightforward to have the client side request a particular service from the server side. What I am trying to do is have the client send a file to the server. The server will then process the file; this process may take a few hours. W...

What does a Http response for serving a binary file (.swf) look like?

I need to serve a file on localhost to a certain application which only accepts http URI-s. However, the files are generated on the fly and I would like to avoid writing to disk, so I decided to write a simple HTTP server using QTcpServer. Luckily, I even found a nice tutorial explaining just that. However, I'm not familiar with HTTP res...

GPRS Modem based data communication for Embedded Remote Client and Server

For SAGEM HiLo GPRS based data communication, it has TCP/IP stack and there are two ways to get connected: (1) Using basic GPRS commands and then ppp dialing to brings the modem to public network/Internet like AT+CGDCONT=1,"IP","APN","0.0.0.0",0,0 OK atd*99***1# CONNECT (2) Using GPRS attach and then using TCP socket commands such as...

What can I do to avoid TCP Zero Window/ TCP Window Full on the receiver side?

Hi everyone, I have a small application which sends files over the network to an agent located on a Windows OS. When this application runs on Windows, everything works fine, the communication is OK and the files are all copied successfully. But, when this application runs on Linux (RedHat 5.3, the receiver is still Windows) - I see in...

TCP or Generic Handler/ Web service

I have a program, lets call it program ABC. This program talks to a dll and return a message. For my silverlight app, I will need to talk to this program, and receive the message. I will have different amount of silverlight clients talking to the program at the same time. It ranges from usually 10 to 100. I am currently using TCP to co...

How does Omegle direct connect with HTTP Protocol?

Every ajax chat tutorial ends the same. You run a getChatMsg.php or some script every X milliseconds to check for new messages. But not omegle.com they only send you a packet when you really need it not every X milliseconds. For example I run every ajax chat tutorial i setup and sniff the packets I get a flow of getChatMsg or similar ...

Using accept() and select() at the same time?

I've got an event-driven network server program. This program accepts connections from other processes on other hosts. There may be many short-lived connections from different ports on the same remote IP. Currently, I've got a while(1) loop which calls accept() and then spawns a thread to process the new connection. Each connection i...

MantaRay opens 3 TCP connections on the same port.

Another problem with mantaray: We have "a lot" of PCs in a network, our p2p messaging software uses MantaRay (which we plan to replace with something else). On some PCs the task manager shows CPU at 100% when this application runs. We tried to investigate that with TCPView, and found that these PCs open more than one TCP connection from...