[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Cannot use a single TCP socket to send and receive data over a modem

Posted on 2004-12-01
Medium Priority
Last Modified: 2010-04-17
Hi all,
I have an asynchronous TCP server which accepts incoming connection requests and serves each client on an individual thread created by the OS (ie asynchronous mode). I tested my server/client on a LAN and they comminicate with each other quite easily. But when i used dial up connections to connect two PCs to the internet using a modem(tried 56k e-dynalink modem II and a 56k dynalink modem) , the client connects to the server but data can be send from the client socket to the server socket only. Any transfers from the server to the client on the same socket pair fails. Can anyone explain why? I can  use two sockets on the client to send and recieve data to the server and vice versa and that works ok so it seems like the modem restricts data transfer over a socket pair to one direction only. Is there a better way of doing the above over a normal 56k modem which support at least half duplex mode.
Another aspect that i need to get clarified is the maximum number of socket an application can have. I read that this depends on the platform and that in general win98-winxp can support over a 10000 sockets per computer. I need to support 4000 connections (8000 sockets if im using 2 for send and receive at one end) would this be feasible at all? I know there are other factors that need to be considered like RAM and CPU speed etc.. but what would you recommend as a solid approach to achieving this.
Lastly could you recommend me some TCP controls(dot net comp) i can use to achive a fast and reliable solution to all of the above?

thanks in advance
Question by:Programmers
1 Comment

Accepted Solution

ositear earned 2000 total points
ID: 12722271
Just a comment, there is a problem on the code, if some data is sent from one place to the other, there is some 'aknowledgment' packets sent in the oposite way for each data you transfer, so make sure you are not making some mistakes on the data_arrival event handler of your program (is the event triggered at all?).

Recomended sockets: try SocketWrench from Cathalist. Is quite easy to use, but I created a game server where there always are over 200 connections and sometimes the control mixes the connections, so take advice carefully.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question