You Are Here:

Community: Developer Discussion Boards

#1 Old binding socket problem - 2006-11-06, 13:55

Join Date: Oct 2006
Posts: 17
galaktico
Offline
Registered User
Hi all,
I am tryng to send some data from a PC to the Mobile phone. I am using the following code on the phone, but it gives me an error.


from socket import *

# Set the socket parameters
port = 19001
host = u"localhost"
buf = 1024
addr = (host,port)
print "creating socket....."
# Create socket and bind to address
UDPSock = socket(AF_INET,SOCK_DGRAM)
print "binding socket....."
UDPSock.bind(addr)
print "DONE"
# Receive messages

Traceback (most recent call last):
File "<console>", line 1, in ?
File "<string>", line 1, in bind
error: (22, 'Invalid argument')


Any idea??
Is there any possibility to get the IP address of the phone somehow??

Thanks for help
Galaktico
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket connect problem vishwas_vincy11 Symbian Networking & Messaging 1 2006-09-19 14:25
socket and datagram problem metebalci Mobile Java Networking & Messaging & Security 2 2006-08-12 16:42
Problem of socket connection with N70 isa550 Mobile Java Networking & Messaging & Security 8 2006-07-12 15:10
Problem Socket in 7650 Phone yaney Symbian Networking & Messaging 2 2002-11-06 06:37
TCP/IP socket connection problem ArunP Symbian Networking & Messaging 1 2002-09-19 11:09

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ