Results 1 to 7 of 7

Thread: Sockets

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96

    Sockets

    Im probibly going to sound stupid here but, my brother told me sockets in VB.Net where very easy, but I cant find out for the life of me how to connect to them and send a simple message (I have worked with vb 6) Could some one please show me how i would
    1. connect to 127.0.0.1 at port 1001
    2. Send a message
    3. Open a port
    4. reply to the message show.
    Tnx a bunch.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    heh..maybe easy but we are still looking for some good samples ourselves..have yet to find any good ones yet..ill take another look around.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96
    Tnx

  4. #4
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    I got nothing else to do so I'll go ahead and write a little web client for you...gimme like 20, 30 minutes.
    Please rate my post.

  5. #5
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    A little HTTP client. You can only change the URI in coding. Didn't feel like doing the rest.
    Attached Files Attached Files
    Please rate my post.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96

    Talking lol

    And All this time I was trying to go the hard way
    I got something like
    dim socket1 as system.net.sockets.socket
    dim ipadd as system.net.ipendpoint
    ipadd.port = 10 //get an error here
    ipadd.address.address("127.0.0.1") //get and error here
    socket1.connect(ipadd)
    You way is Much easyer

  7. #7
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    Please rate my post.

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