Hi genius out there! I am new to pys60! I am trying to make a connection to listen to a port and capture the data as soon as it receives it. I have searched a lot but any of the codes are working!..Please help me out!
Thank you a lot!!
Hi genius out there! I am new to pys60! I am trying to make a connection to listen to a port and capture the data as soon as it receives it. I have searched a lot but any of the codes are working!..Please help me out!
Thank you a lot!!
hi darkload18
welcome to the wonderful python Dibo. I hope u will get all answers in this forum.
before u can start socket programming have a look at the wiki
u will get all the code snippets there.
thanx.
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
Thx for the reply. I check out the website. It is really good, but it is still not working.
I have used this code:
from socket import *
>>> s = socket(AF_INET, SOCK_STREAM)
>>> s.bind(('127.0.0.1', 8080))
>>> s.listen(1)
to listen to anyone wanting to connect to me.
I get this error:
in bind error(2.'No such file or directory').
Please help me out!
Thank you a lot!!
hi darkload18
here is the same case as of bogdan i also tried the same code in my interactive console and didnt get any error.
really surprised
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
Try using another IP address, it does not work. But when it executes the listen command, it should not connect to the access point?? It does nothing!
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
You cannot listen to incoming Internet connections. IP address 127.0.0.1 (localhost) will allow only in-phone interprocess connections.
GPRS connections do not have public IP addresses. Please refer to the tunnel message posted here recently.
You can use WLAN access point and WLAN internal IP for listening to connections from external devices.
Mikko Ohtamaa
http://mfabrik.com
http://blog.mfabrik.com