1. Download our Official Android App: Forums for Android!

Apps Android Client Socket Write One Time

Discussion in 'Android Development' started by TDMaster, Aug 21, 2011.

  1. TDMaster

    TDMaster Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    6
    Joined:
    Feb 21, 2009

    Feb 21, 2009
    6
    0
    25
    Developer
    Israel
    i am writing an Application that works through WIFI and connected to PC
    through C# Socket..

    the application works once :
    it send first data and that's it
    no other data is sent through the socket
    Sockets are connected on Both ways
    other side is the Listener..

    any Help will be great
    :)
    Thank you
     

    Advertisement

  2. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,972
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,972
    3,603
    513
    Android App Developer
    NY
    Sockets have a tendency to drop out (wi-fi is unreliable) and get left hanging in a TIME_WAIT state (I think).

    You can try setting so.reuseAddress(true) and checking routeToHost to help a bit
     

Share This Page

Loading...