Re: Buffer size when receiving data through a socket?



Dennis Lee Bieber wrote:
On Wed, 18 Jun 2008 09:56:29 -0400, "John Salerno"
<johnjsal@xxxxxxxxxxxxxxx> declaimed the following in comp.lang.python:

Interesting point. I'm not sure if it works that way though. I *think* I tried sending an empty string from the server back to the client, and as expected it exited the loop and closed the client, which doesn't make sense to me, since an empty string could be perfectly valid return data.

Okay... I suppose socket could consider a transmission with 0 data
bytes as valid "data". The main key is that there had to be send of 0
data -- opposed to just not receiving anything..

No, I think you're right. I read elsewhere that when I send() call returns 0 bytes, the connection is automatically closed.
.



Relevant Pages

  • RE: Empty string coming from web services
    ... The Empty string has been "compressed" on server side. ... client side. ... Luke ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Capturing stdout and stderr without redirection
    ... David Moreno Garza wrote: ... The empty string is not a true value. ... While that's perfectly valid, it's no more valid than what the OP has. ... Paul Lalli ...
    (perl.beginners)
  • Re: Case and no column
    ... that's somewhat of a hack. ... The best choice is to set up your client to not ... display the column if it's empty. ... But if the parameter will be good (returning empty string), ...
    (microsoft.public.sqlserver.datamining)
  • Re: Required Field
    ... This will check for Null and an empty string. ... > MsgBox "Missing Client Name", vbCritical, msgTitle ... >not erased the data after entering it once they get the error message. ...
    (microsoft.public.access.formscoding)
  • Re: Buffer size when receiving data through a socket?
    ... Pressing just ENTER will ... exit the loop and close the client socket. ... since an empty string could be perfectly valid return data. ...
    (comp.lang.python)