| View previous topic :: View next topic |
| Author |
Message |
Ikopar Enthusiastic Coder
Joined: 26 May 2006 Posts: 168
|
How do i know when a connection closes on a socket?
How do i recv until it closes?
Reply with quote
|
| |
|
|
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
| |
Ikopar Enthusiastic Coder
Joined: 26 May 2006 Posts: 168
| |
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
| |
Ikopar Enthusiastic Coder
Joined: 26 May 2006 Posts: 168
| |
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
|
Ikopar, it doesn't have anything to cut and paste, no. like i said, test for zero
And yes it does have an example. look for "mysend" and "myreceive". you can pull out that logic without needing a class wrapped around it like the example has
It's very old code but the socket api hasn't changed
Reply with quote
|
| |
|
|
Ikopar Enthusiastic Coder
Joined: 26 May 2006 Posts: 168
| |
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
| |
Ikopar Enthusiastic Coder
Joined: 26 May 2006 Posts: 168
| |
|