HZNM.COM
welcome to my space
X
Search:  
 HOME   send() question
send() question
Published by: mike 2009-01-09
Welcome to:hznm.com

  • I am using TCP protocol for sending data over the network. Can I be sure that after the send() call is over, the data is read by the other side? If not is there a way to achieve this?
    The socket is not marked as blocking.
    Thanks..


  • Thanks, it's a very valuable information for me.
  • ESPN: ESPNEWS: Send Your Questions! - SportsNation::
    ESPNEWS has a roster full of experts and analysts just waiting to answer your questions and hear your feedback about every sport you can imagine.
    http://sports.espn.go.com/chat/sportsnation/story?page=espnewsmailform
    HOME
    sock.send question - LinuxQuestions.org::
    9 posts - Last post: Nov 27is it the sock.send only run once? that means even we do the for loops, the sock .send only run once then it will terminate? hope my question
    http://www.linuxquestions.org/questions/programming-9/sock.send-question-686221/
    HOME


  • You have no control over WHEN precisely TCP/IP will decide
    to deliver your data to the other side... So, no, you can't ever
    really be sure that any data you have sent has actually been
    read by the other side, unless you design something into your
    communication protocol to provide such notification... (Ie: have
    each side send some kind of user-level ACK message after it
    receives a message...) Well, actually, I take that back... I think
    you could also get away with simply monitoring the amount of
    unsent data in your send queue (via SIOCOUTQ/TIOCOUTQ
    ioctl())... When that drops to zero, then yes, you can be sure
    that all of the data has been received by the remote system...
    HOWEVER, that doesn't necessarily mean it's been read by
    the process on that remote system yet... It just means the OS
    has successfully received it, and it's there waiting for the process
    to read it, when it's ready to...


  • Yes. when is all ok, data was received by remote host. If not, send return error on next send usage.

    check information how tcpip work. /packet scheme/
    hope this help.





  • How much does getting a small tattoo on your hip/stomach hurt?
    Do anyone else have an itchy anus? ?

    You are looking at:hznm.com's send() question, click hznm.com to home
  • cats infected with bird flu in iraq report
  • iraq pollution causing cattle deaths in marshlands
  • qinghai like h5n1 from domestic cats northern iraq
  • iraq travel restrictions
  • iraq basra clean from the disease avian influenza
  • abkhaziya georgia rumors of bf in abkhaziya
  • iran vet chief rejects reports of avian flu outbreak in mazandaran
  • iran rejects reports of human bird flu cases details of possible case contained
  • iran suspicious bird flu deaths in pardisan park
  • iraqi woman dies of suspected bird flu
  • iran culls chickens no bird flu
  • some old news from iraq
  • fao first bird flu workshop held in tehran
  • warnings in iran
  •  
  • iraqi boy was country s third bird flu case who
  • iraqi health minister no bird flu in baghdad
  • h9 avian influenza in iraq
  • iran 4 000 birds mysteriously die in northwest iran
  • iraq takes strict preventive measure against bird flu
  • iran successful in combating avian flu
  • iran minister of health denies bf outbreak in northern iran
  • tehran confirms cases of bird flu
  • no bf or opium in mosul ninawa governorate
  • bird flu case found in s iraqi city of basra
  • iran denies bird flu claim
  • iraq sus case died from erbil tests neg 2nd sus case
  • iran 2 dead from bf 3 additional family members sick
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ