| Reply | « Previous Thread | Next Thread » |
|
Hello every body
I have some questions please first of all am working with python 2.5 and when I tried to open a socket the following message appeare on the emulator File"Z:\system\libs\socket.py",line42,in socket return socketobject(_realsocketcall(family,type,proto,family) error 88,function not implemented')this is the code import socket def Connection(): server = socket.socket(socket.AF_BT, socket.SOCK_STREAM) channel = socket.bt_rfcomm_get_available_server_channel(server) server.bind(("", channel)) server.listen(1) socket.bt_advertise_service(u"btchat", server, True, socket.RFCOMM) socket.set_security(server, socket.AUTH | socket.AUTHOR) print "Waiting for clients..." conn, client_addr = server.accept() print "Client connected!" Connection() |
| programer_asal |
| View Public Profile |
| Find all posts by programer_asal |
|
Use the 'btsocket' module rather than the 'socket' module for bluetooth support.
|
|
aya42 I tried actually to do that as you told me before but it told that no module named btsocket
thanks
Last edited by programer_asal : 2009-04-25 at 22:44.
|
| programer_asal |
| View Public Profile |
| Find all posts by programer_asal |
|
Quote:
May I suggest avoiding beta versions 1.9.x, and using v1.4.5 until v2.0 is released. |
|
You haven't specified which PyS60 version you're using, but you specified
Quote:
1-the file s60_2nd_fp2_sdk_msb.zip 2-PythonForSeries60_1_2_for_2ndEd_FP2_SDK.zip 3-python-2.5.2.msi which one of them I should change???? I have downloaded 1.4.5 and I have took the socket module only and copy it on the libs of my library is that OK??? thank you again |
| programer_asal |
| View Public Profile |
| Find all posts by programer_asal |
|
Quote:
#3 on the list is redundant, and has no effect on the emulator. If you're developing for S60 2nd Edition FP2, you'll need #1, and http://sourceforge.net/project/downl...zip&a=45221442 instead of #2. |
|
Quote:
|
| programer_asal |
| View Public Profile |
| Find all posts by programer_asal |
![]() I did it actually after I copy the new version and after I change server = socket.socket(socket.AF_BT, socket.SOCK_STREAM to server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) the socket is created thank you aya42 ![]() |
| programer_asal |
| View Public Profile |
| Find all posts by programer_asal |
|
Quote:
I have the same problem... Has anyone found any solution? I am using python 2.6, SDK 3rd. |
| williame.rocha |
| View Public Profile |
| Find all posts by williame.rocha |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Simple Socket Programms | benderg | Mobile Java Networking & Messaging & Security | 10 | 2008-06-10 06:55 |
| simple socket connection... | browndrf | Mobile Java Networking & Messaging & Security | 6 | 2006-11-03 01:45 |
| Simple Server/Client Socket program | mottaisami | Mobile Java Networking & Messaging & Security | 2 | 2006-09-08 22:58 |
| problem in persistant socket connection | poms4symbian | Browsing and Mark-ups | 0 | 2006-01-03 14:23 |
| Socket problem | defragger | Python | 0 | 2005-08-25 09:16 |