Connection between different socket

Discussion in 'Questions (Windows Mobile)' started by mircome, Jul 17, 2008.

  1. mircome

    mircome Member Licensed User

    In a conversation between the Windows socket (program written in vb6 ) and the b4ppc socket we have found the following problems.
    Configuration is SERVER : (Socket Windows vb6) CLIENT (Socket b4ppc) :
    the connection is successful,(even if the client does not waits the ACCEPT from the server. We noticed the same in the CHIT-CHAT sample .)
    Data transmission from CLIENT to SERVER is successful. But In the reverse transmission (SERVER to CLIENT) I receive the following error : Unable to read beyond then end of stream
    :sign0085:
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you post the code that you use to receive the data?
     
  3. mircome

    mircome Member Licensed User

    connectio between sockets

    connection ok
    sending data from client to server ok
    receiving data from server (pc, with program written in VB6) to client (program client.sbp) gives error:Unable to read beyond then end of stream
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    BinaryFile.ReadString / WriteString methods use a specific .Net protocol.
    You should only use these methods when the two sides are Basic4ppc or .Net applications.
    In your case you should use the raw ReadBytes / WriteBytes methods to send the data.
    You can convert arrays of bytes to strings with Bitwise.BytesToString and Bitwise.StringToBytes.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice