strange sockets
Steve Holden
steve at holdenweb.com
Mon Nov 7 08:13:29 EST 2005
Skink wrote:
> Sion Arrowsmith wrote:
>
>>conn.sendall(struct.pack("!i", len(data)) + data)
>>
>>or after creating conn
>>
>>conn.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
>>
>>to disable Nagle.
>>
>
>
> Sion,
>
> thank you for your help,
>
> it works but...
> it works when client & server is in python
> i tried both solutions and they work when client is client.py
> they both don't work when client is java client
> when i tried to connect python's server by java client i have the same:
>
> % java Loader server.py server.py server.py
> init 29
> server.py reading 631 1
> server.py reading 631 40
> server.py reading 631 41
>
> why?
>
Seems to me that should probably be a question for comp.lang.java.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/
More information about the Python-list
mailing list