22, invalid agument error

kondal kondal04 at gmail.com
Thu Sep 7 00:53:22 EDT 2006


> >   sockobj.bind(('',40007))
>
> tried on my N6600 with same error
>
> try using your phone's IP instead of the empty string ''
>
> tried sockobj.bind(('127.0.0.1',40007)) and did not get an error

In general sockets layer bind with null host makes it pick the address
from arp resolution and null in port makes it pick a random number as a
source port. This is reason bind call is not required for client
connections.

I think Python for S60 has some problem in sockets layer for the bind
function. Best is to remove the bind call in the client program as
people will test with this senario in general.




More information about the Python-list mailing list