Results 1 to 2 of 2

Thread: how to send message thru winsock

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    how to send message thru winsock

    i have this code
    VB Code:
    1. Winsock1.Bind 1027
    2. Winsock1.RemoteHost = Label1.Caption    'computer name
    3. Winsock1.RemotePort = 7          
    4. Winsock1.SendData Text1.Text

    but it has an error like "invalid operation at current state"

  2. #2
    New Member
    Join Date
    Apr 2005
    Posts
    10

    Re: how to send message thru winsock

    before the bind

    "Winsock1.bind 1027"

    write

    "Winsock1.close"

    Credit to pino

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