×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    36

    acceptAndOpen does not work

    hi all,
    i develop software use a protocol like ftp, but when i call acceptAndOpen function program blocked.

    Code:
    service = (ServerSocketConnection)Connector.open("socket://:");
        		
        		String cmd = "GET "+ id + " " + service.getLocalPort() +"\n";
        		
        		LogScreen.instance.log(cmd);
        		
        		os.write(cmd.getBytes());
        		
        		os.flush();
        		
        		LogScreen.instance.log("dopo flush");
        		
        		servSc = (SocketConnection) service.acceptAndOpen();
        		
        		LogScreen.instance.log("aperta la connessione");
    and client run time out socket exception.
    Can u help me?

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: acceptAndOpen does not work

    hi,
    #1
    should locator have stamp:
    Code:
    socket://
    thats without trailing colon?

    #2
    have you got any security warnings if tested on emulator or on real device?

    #3
    what is exact exception you've got?
    enclose connection routine in try/catch/finally to see errors either printed from emulator or on debug screen on device?

    #4
    and which device?

    regards,
    Peter

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    36

    Re: acceptAndOpen does not work

    i tested in real device, nokia n80, and acceptAndOpen not work, block program waiting new connection. there is connection but acceptAndOpen non unblock

Similar Threads

  1. Server Socket Problem on Nokia 6680: acceptAndOpen does not work
    By opistara in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2009-08-06, 11:20
  2. Replies: 0
    Last Post: 2004-10-18, 18:06
  3. ethernet plugin still doenot work
    By cmalu in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-10-12, 09:18
  4. CommConnection does not work with Series 60 SDK, but works in JWT
    By jackiechan2001 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-02-04, 09:07
  5. USB DONGLE WINDIGO BTD 2403 PC SUITE WONT WORK , I AM GOING MAD
    By BUSTERBERGIN in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-12-09, 11:51

Posting Permissions

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