| Reply | « Previous Thread | Next Thread » |
|
Hi, I have tried many and many times to adapt the pc socket.py and similar modules to pys60 but i failed all the times...I need to create a server (better if ftp) on my phone. I'd have 3 question for you:
1)How to get current device ip for the server?(socket.py doesn't seem to work) 2)How to create an ftp/http server on my phone? 3)If isn't possible yet to create ftp/http servers on phones, do you think that there is another possibility to send data from device to device (not sms of course ) or from pc to device-device to pc by web/wap?Thanks a lot |
| luke14free |
| View Public Profile |
| Find all posts by luke14free |
|
dude..,
i think "racoon" webserver is the answer to all your queries.. [ ] ![]() |
|
Hmm...I am trying to use a socket module to create a self server...
Code:
import socket S = socket.socket ( socket.AF_INET, socket.SOCK_STREAM ) S.bind ( ( 'localhost', 80 ) ) S.listen ( 1 ) while True: channel, details = S.accept() print 'Connected with', details print channel.recv ( 100 ) channel.send ( 'Server online' ) channel.close() Code:
Traceback (most recent call last): File "<console>", line 1 in ? File "<string>", line 1 in bind error: (22, 'Invalid argument') Is it a bug? Where could I find s60 socket docs? Kind Regards, Luke14free |
| luke14free |
| View Public Profile |
| Find all posts by luke14free |
|
Hi luke14free,
Socket doc is here http://www.python.org/doc/2.2.2/lib/lib.html Check raccon, this is a Apache webserver for Symbian. You might be interested, it depends what you want to do. LFD Devices: Nokia E61 3rd Edition - pys60 1.4.0 Tips and modules: http://www.lfdm.net/thesis |
|
Hi luke14free,
Little erratum: check also section 8.2 (S60 extensions to standard socket module) of the PyS60 documentation http://switch.dl.sourceforge.net/sou...doc_1_3_21.pdf Cheers, LFD Devices: Nokia E61 3rd Edition - pys60 1.4.0 Tips and modules: http://www.lfdm.net/thesis |
|
luke14free,
Code:
S.bind ( ( 'localhost', 80 ) ) - janimr |
|
Quote:
-Jukka |
|
I want to create a TCP/IP server into my phone using WLAN in my private network. Is there any way to find out the current ip?
This is from python documentations: Quote:
My phone returns string with asterisks, like '****************'. Well, this wasn't surprise because in Release Notes of PyS60 it states: Quote:
Is there any other way to find out my IP? This works if my IP is for example 172.16.0.23: Code:
import socket S = socket.socket ( socket.AF_INET, socket.SOCK_STREAM ) S.bind ( ( '172.16.0.23', 2000 ) ) S.listen ( 1 ) channel, details = S.accept() print 'Connected with', details print channel.recv ( 100 ) channel.send ( 'Server online' ) channel.close() |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Push MMS from server to mobile!!!! | bandana | General Messaging | 0 | 2006-03-01 20:40 |
| run servlet on unix server using nokia mobile | sohilpatel | Mobile Java Networking & Messaging & Security | 3 | 2005-03-30 18:16 |
| Nokia Mobile Server Services SDK | cdallend | Mobile Java Tools & SDKs | 0 | 2003-09-23 20:55 |
| Licensing of Nokia Mobile Server Services API and Library 1.2 | austenuk | Mobile Java Tools & SDKs | 0 | 2003-07-21 18:15 |
| bug in nokia mobile server services... | sridhar_ratna | General Messaging | 0 | 2003-05-26 05:19 |