You Are Here:

Community: Developer Discussion Boards

#1 Old socket connection to localhost problem?? - 2009-03-15, 23:20

Join Date: Sep 2006
Posts: 37
SYTDeath
Offline
Registered User
If the url omits host according to the socketconnection documentation, as shown below. 'ClassCastException' is thrown. So, I presume that it seems system tries to cast socketconnection to serversocketconnection but it fails.

SocketConnection sc = (SocketConnection)Connector.open("socket://:8100");

Thank you!

K,
Last edited by SYTDeath : 2009-03-16 at 00:29.
Reply With Quote

#2 Old Re: socket connection to localhost problem?? - 2009-03-18, 06:20

Join Date: May 2007
Posts: 347
Location: Mexico D.F
rdrincon's Avatar
rdrincon
Offline
Forum Nokia Expert
You are trying to force a ServerSocketConnection (produced by the url schema) to be a SocketConnection.


:Ruben
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket blocking problem durgeshtrivedi Mobile Java Networking & Messaging & Security 3 2008-06-16 08:51
Problem with TCP Socket connection SeppOS Mobile Java Networking & Messaging & Security 2 2008-01-01 13:50
Problem in establishing socket connection elise_ee Mobile Java General 4 2005-08-30 14:57
Socket problem defragger Python 0 2005-08-25 09:16
Problem with socket connection prakashsainani Symbian Networking & Messaging 1 2003-09-10 16:33

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