|
-
Jul 30th, 2001, 08:13 AM
#1
Thread Starter
Member
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.
-
Jul 30th, 2001, 08:51 AM
#2
Frenzied Member
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.
-
Jul 30th, 2001, 08:52 AM
#3
PowerPoster
As nobody else took up the challenge, here you go. Let me know if i forgot something...
-
Jul 30th, 2001, 08:55 AM
#4
Fanatic Member
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
-
Jul 30th, 2001, 09:02 AM
#5
Thread Starter
Member
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?
-
Jul 30th, 2001, 09:05 AM
#6
Thread Starter
Member
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:
-
Jul 30th, 2001, 09:06 AM
#7
Thread Starter
Member
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 )
-
Jul 30th, 2001, 09:12 AM
#8
Thread Starter
Member
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!
-
Jul 30th, 2001, 09:17 AM
#9
Fanatic Member
-
Jul 30th, 2001, 09:55 AM
#10
PowerPoster
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...
-
Jul 30th, 2001, 10:16 AM
#11
Thread Starter
Member
It doesn't matter, ExcaliburZone's one works perfectly. Thanks for taking up the challenge, though.
-
Jul 30th, 2001, 10:16 AM
#12
Thread Starter
Member
You're really proud of your several KB program, aren't you?
-
Jul 30th, 2001, 10:22 AM
#13
PowerPoster
-
Jul 30th, 2001, 10:24 AM
#14
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|