[Tutor] Socket Programming
Adam Bark
adam.jtm30 at gmail.com
Mon Aug 1 22:34:37 CEST 2005
Hi Joe you can use 10000 and just send 'Hi!' as long as something else isn't
likely to be sent at the same time. It will just read what is in that socket
when you call it so if something else that you don't want is there just
behind what you're after then you could end up with that as well.
On 8/1/05, Joseph Quigley <cpu.crazy at gmail.com> wrote:
>
> Hi,
>
> Ok. But what if I wanted to send a 1 mb message? Could I leave
> .recv(10000) in and send 'Hi!' as well or would I have to change it?
> Thanks,
> JQ
>
> Adam Bark wrote:
>
> > You have to put in how many bytes of data you want to recieve in
> > clientsocket.recv() eg. clientsocket.recv(1024) for 1kB.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050801/4f322e64/attachment-0001.htm
More information about the Tutor
mailing list