Sockets

Grant Edwards grante at visi.com
Wed Oct 10 17:36:59 CEST 2001


In article <d0380df9.0110100314.78e5d69a at posting.google.com>, Hugo Martires wrote:
> My server need to send 2 strings separeted:
>  s1= 'xxx'
>  s2= 'yyy'
> 
> My client must received like this:
>  rec1= 'xxx'
>  rec2= 'yyy'
> 
> The problem is that the Client received s1 and s2 in one only string.
>
> How can i received in 2 separeted variables ?

Use a datagram service, or impose a datagram protocol on top of
a stream service.

I think the world really needs a reliable datagram service to
sit alongside TCP and UDP...

-- 
Grant Edwards                   grante             Yow!  I will establish
                                  at               the first SHOPPING MALL in
                               visi.com            NUTLEY, New Jersey...



More information about the Python-list mailing list