Results 1 to 14 of 14

Thread: Winsock

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    Winsock

    I don't mean to sound demanding BUT...

    Since I don't have VB here with me at work, could someone write and compile a simple program that uses Winsock to listen to a certain port (say, 9131) and when the Winsock receives data it puts what it received in a text box?

    Also, could you put in a textbox or inputbox that sends data to the client?

    I have a presentation to make tomorrow, and I need a fake server that shows that my Winsock code can connect to a fake server.

    I would greatly appreciate whomever would take on this admittedly easy task.

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    I just tried to email you, but was informed that you are not accepting emails from the forum,so...

    Try this thread: Winsock stops listening. In it, I uploaded a client/server example for folks who were having trouble with the example on this site.

    If the link doesn't work (some have had problems in the past) try pasting it into the address/url area. I just did that and that approach does work.

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    As nobody else took up the challenge, here you go. Let me know if i forgot something...

  4. #4
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Ask and you shall recieve. There is no parsing, it will display what comes up in dataarival in a message box. You click on the send data to client button and you get an input box that sends data to the client. the port is 9131
    -Excalibur

  5. #5

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Originally posted by ExcalibursZone
    Ask and you shall recieve. There is no parsing, it will display what comes up in dataarival in a message box. You click on the send data to client button and you get an input box that sends data to the client. the port is 9131
    Bee-utiful. I assume it is using localhost or 127.0.0.1.

    Can it receive data as well?

  6. #6

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Originally posted by chrisjk
    As nobody else took up the challenge, here you go. Let me know if i forgot something...
    I clicked Listen (after changing the port to 9131), send the data from my code, and your proggie crashed with a Winsock error:

  7. #7

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Originally posted by ccoder
    I just tried to email you, but was informed that you are not accepting emails from the forum,so...

    Try this thread: Winsock stops listening. In it, I uploaded a client/server example for folks who were having trouble with the example on this site.

    If the link doesn't work (some have had problems in the past) try pasting it into the address/url area. I just did that and that approach does work.
    Could you compile it please? I don't have VB at work. I am testing my Java code. (Please don't hurt me )

  8. #8

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Originally posted by filburt1


    Bee-utiful. I assume it is using localhost or 127.0.0.1.

    Can it receive data as well?
    Never mind, I'm a retard. I didn't read your post.

    Yay, my connection code works! WOOHOO!

  9. #9
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Glad to see it does I tested it with windows telnet *shudder* I really like seeing a messagebox pop up each time I hit a key *NOT* Actually, I found it quite nifty. Try typing the first letter but don't clear off the msgbox. Keep typing and when you clear the first msgbox, the rest of the text will show up all at once. Woo Fun Fun Fun. Oh, yeah. Go ahead and use the loopback address Setting it to anything else would have been pointless
    -Excalibur

  10. #10
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by filburt1


    I clicked Listen (after changing the port to 9131), send the data from my code, and your proggie crashed with a Winsock error:
    hmmm, works for me. I'll investigate further later...

  11. #11

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    It doesn't matter, ExcaliburZone's one works perfectly. Thanks for taking up the challenge, though.

  12. #12

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Originally posted by ExcalibursZone
    Glad to see it does I tested it with windows telnet *shudder* I really like seeing a messagebox pop up each time I hit a key *NOT* Actually, I found it quite nifty. Try typing the first letter but don't clear off the msgbox. Keep typing and when you clear the first msgbox, the rest of the text will show up all at once. Woo Fun Fun Fun. Oh, yeah. Go ahead and use the loopback address Setting it to anything else would have been pointless
    You're really proud of your several KB program, aren't you?

  13. #13
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by filburt1
    It doesn't matter, ExcaliburZone's one works perfectly. Thanks for taking up the challenge, though.
    Yeah but i don't like it when things don't work, I like to find out why...

  14. #14

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    That's a good idea. If only MS followed your philosophy.

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