943,546 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3096
  • C++ RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 10th, 2009
0

Re: C++ Networking- port forwarding

Click to Expand / Collapse  Quote originally posted by Comatose ...
Ok, so then you also know that web servers don't maintain a persistent connection. Which means that the connection doesn't stay alive. Which means as soon as the web server is done dishing out the web page to the client (or any information to the client) it immediately disconnects. So... let's follow this scenario:
1) you connect to the web server
2) buddy connects to web server
3) web server d/c you
4) buddy tries to send you a message, and is also d/c
5) web server..... does what? Sends you a message over a broken TCP connection?
Omg... You and your buddy are connected at the same time. When the server receives a message from one, it forwards the message to the other person. So their both connected to the server, and the server responds to their connection.
Reputation Points: 5
Solved Threads: 0
Light Poster
amerninja2 is offline Offline
36 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Adding to an array of strings after initialization.
Next Thread in C++ Forum Timeline: Tic Tac Toe - using 2 classes





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC