![]() |
| | #1 |
| Protocol Test Engineer Join Date: Sep 2005 Location: fseek(UK)
Posts: 1,324
| Sockets thanks. ssharish
__________________ Life is like riding a bicycle. To keep your balance you must keep moving - Einstein |
| ssharish2005 is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,650
| If the server exits, won't all the connections close? |
| Salem is offline | |
| | #3 |
| Banned Join Date: Aug 2001 Location: Visalia, CA, USA
Posts: 3,699
| What is your objective? To have your program gracefully acknowledge a server closing? (I.e. you are writing a game and want the clients to be able to reconnect if Billy's dog starts to chew on his Cat-5 cable between his modem and router?) |
| master5001 is offline | |
| | #4 |
| Protocol Test Engineer Join Date: Sep 2005 Location: fseek(UK)
Posts: 1,324
| I am sorry; I should have made it a bit clearer. I think problem wouldn't be there if it was implemented in C. My server has been implemented in prolog! What happened when the server aborts is that, it closed all the open ports by the server. Or at least it closed down all the port when it restarts and re-opens it back again! But the stream which were opened doesn’t close, the clients are still reading from those open stream. If I manage to close the stream on the server end and when the client reads it from the closed stream it should return -1, which then I could catch that and close the stream on the client end. And make a new connection. ssharish
__________________ Life is like riding a bicycle. To keep your balance you must keep moving - Einstein |
| ssharish2005 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best way to poll sockets? | 39ster | Networking/Device Communication | 3 | 07-22-2008 01:43 PM |
| Cross platform sockets | zacs7 | Networking/Device Communication | 5 | 06-27-2007 05:16 AM |
| multiple UDP sockets with select() | nkhambal | Networking/Device Communication | 2 | 01-17-2006 07:36 PM |
| Raw Sockets and SP2... | Devil Panther | Networking/Device Communication | 11 | 08-12-2005 04:52 AM |
| Starting window sockets | _Cl0wn_ | Windows Programming | 2 | 01-20-2003 11:49 AM |