Announcement

Collapse
No announcement yet.

Socket Communication on EVO (XportPro)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Socket Communication on EVO (XportPro)

    Help

    Following is the sequence of events.
    Any ideas (I've dried up);

    THREAD A (send) ...... THREAD B (receive)

    - socket() ............ - socket()
    - connect()........... - bind()
    ........................... - listen()
    ........................... - accept()
    ........................... - select() (accepted socket)
    - send() (HelloWorld)..... - recv() (accepted socket) gets 'HelloWorld'
    - recv() ..................... - send() (accepted socket, does return)
    - recv() (hangs)........... - close() (accepted socket) hangs

    Notes:
    - eventually recv() (THREAD A) returns with 'errno' -21
    - when I test THREAD A on EVO and THREAD B on external device (Linux OS)
    works fine
    - when I test THREAD B on EVO and THREAD A on external device (Linux OS)
    works fine
    - the same code THREADS A & B work fine on Linux OS as 2 separate tasks
    - each THREAD is started with 18K stack on EVO


    CobApplets

    - copied 'java classes and gifs' to the '/http/myApp' on EVO
    - program starts fine but it also has problem exchanging data with the
    THREAD B (that is why I created TREAD A to test)

    thsnks

    nidjo
    Last edited by nidjo; 11-29-2010, 06:39 PM.

  • #2
    recv timeout

    If recv times out, it could return an errno -21. To get more insight on the state of the socket in Evo, use "show ip sockets" at the CLI enable level.

    What SDK version are you using?

    Comment


    • #3
      recv timeout

      Thanks

      SDK version is v5.0.0.0.R14, I just downloaded it recently
      Please note: sending thread 'freezes' after send(), closing socket.
      I inserted delay but no help
      I observed socket on 'Lantronix Web Manager' seems OK

      nidjo

      P.S. I checked socket status, LISTEN & ESTABLISHED (same as Web Manager) at the CLI level
      Last edited by nidjo; 11-29-2010, 08:55 PM.

      Comment

      Working...
      X