Results 1 to 4 of 4

Thread: Winsock

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    51

    Winsock

    VB Code:
    1. server.GetData sckbuffer
    2.     If InStr(sckbuffer, "ENCRYPTION_ON") Then
    3.         sckbuffer = "# ENCRYPTION_OFF" & Chr(13) & "##"
    4.         server.SendData "# ENCRYPTION_OFF" & Chr(13) & "##"
    5. End If
    6.     client.SendData sckbuffer
    7. End Sub



    any one any idea why this code doesnt function?
    Last edited by Joeheg; Feb 14th, 2003 at 05:54 PM.

  2. #2
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    hehehe, what are you up to?

    basically it reads a chunk of data from the tcp/udp connection, and if it finds an ENCRYPTION_OFF string inside of what it just received, sends a '# ENCRYPTION_OFF ##' back; otherwise just pushes exactly what it received thru (supposedly) another socket.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    51
    well, when the server sends ENCRYPTION_ON i need the server control to send ENCRYPTION_OFF and hte client control to send ENCRYPTION_OFF.

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    51
    any ideas?

Posting Permissions

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



Click Here to Expand Forum to Full Width