declaration problem

devi thapa devi.thapa at gmail.com
Fri Nov 7 05:35:22 EST 2008


Hi,

I am using the command

recv(..) to receive a message from client.

retval = recv(my_socket, *buf, len(buf) , 0)

and its giving this error

 File "./server1.py", line 31
    retval = recv(my_socket, *buf, len(buf) , 0)
                                                                ^
SyntaxError: invalid syntax

how should I fill  the length parameter,

please help me out with this,

Regards,
Devi



More information about the Python-list mailing list