|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
It's not a homework. But, I didn't come out of CS, so...
Suppose I send a char to a remote machine. How do I know it received it? - If I write(2) to a socket and check that it returns 1 byte written, is that sufficient to determine that the remote end received it? - Or, does the return value of write(2) simply means it put the char in the outgoing buffer? -- William Park <(E-Mail Removed)>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/ William Park |
|
#2
|
|||
|
|||
|
On Apr 22, 10:36 am, William Park <opengeome...@yahoo.ca> wrote:
> It's not a homework. But, I didn't come out of CS, so... > > Suppose I send a char to a remote machine. How do I know it received > it? > - If I write(2) to a socket and check that it returns 1 byte > written, is that sufficient to determine that the remote end > received it? > - Or, does the return value of write(2) simply means it put the char > in the outgoing buffer? > > -- > William Park <opengeome...@yahoo.ca>, Toronto, Canada > ThinFlash: Linux thin-client on USB key (flash) drive > http://home.eol.ca/~parkw/thinflash.html > BashDiff: Super Bash shell > http://freshmeat.net/projects/bashdiff/ A return from write doesnt make any guarantee that remote end has recieved it. for more inf check this -- http://www.opengroup.org/onlinepubs/...xsh/write.html zaher el siddik http://elsiddik.blogspot.com/ |
![]() |
| Tags |
| data, delivery, determining, end, question, remote |
| Thread Tools | |
| Display Modes | |
|
|