22, invalid agument error

Infinite Corridor corridor.infinite at gmail.com
Thu Sep 7 08:28:40 CEST 2006

kondal wrote:
> > >   sockobj.bind(('',40007))
> >
> > tried on my N6600 with same error
> >
> > try using your phone's IP instead of the empty string ''
> >
> > tried sockobj.bind(('',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.

Well the bind call is in the server program, not the client. I want to
run the server program on the cellphone.
Any idea how to fix it?


More information about the Python-list mailing list