![]() |
| | #1 |
| Registered User Join Date: Jun 2003
Posts: 31
| better: if the client send a message but the send not send all data and then the client must call another time the send() function to be sure that all data will be send; how i can know if recv function is correct(receive all data)?? P.S. my english is very bad, sorry. |
| Massive is offline | |
| | #3 |
| Guest
Posts: n/a
| Eh, the link is actually: Quick Winsock question |
|
| | #4 |
| Registered User Join Date: Jun 2003
Posts: 31
| ok i understand, but if i'm sending a binary file ?? it's a problem to put a terminator character... don't think?? |
| Massive is offline | |
| | #5 |
| Registered User Join Date: Jun 2003
Posts: 31
| yes but i would to use non blocking socket and in this way the recv is blocking (or similat to blocking socket)..... |
| Massive is offline | |
| | #6 | |
| End Of Line Join Date: Apr 2002
Posts: 6,240
| Quote:
TCP/IP is a stream based protocol, meaning you get the data in whatever sized chunks the OS feels like giving them to you.
__________________ When all else fails, read the instructions. If you're posting code, use code tags: [code] /* insert code here */ [/code] | |
| Hammer is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C Sockets - recv() problem | Mercurius | Networking/Device Communication | 3 | 05-15-2006 07:49 AM |
| Laptop Problem | Boomba | Tech Board | 1 | 03-07-2006 06:24 PM |
| Sorting problem.. well actually more of a string problem | fatdunky | C Programming | 5 | 11-07-2005 11:34 PM |
| half ADT (nested struct) problem... | CyC|OpS | C Programming | 1 | 10-26-2002 08:37 AM |
| stream socket problem | WL | C Programming | 2 | 10-01-2001 11:07 PM |