Im not the sharpest tool in the shed!

lmb2001
10-28-2001, 06:08 PM
Please help me I really need to "LEARN" the winsock control not see source codes and pre-made projects..I need an explaination .Is it possible to send a message to your own IP?..cuz I need to test it..Please help me!!!!!!
Nothing has worked!!!!!!!!!!!!!!!!!!!!

Thinker
10-28-2001, 06:11 PM
Sure it is possible. But you have to have two controls running, and I would
think they need to be running in separate programs (not 100% positive
about the last part.)

lmb2001
10-28-2001, 06:21 PM
yeah,Ihad two instances of vb running and I still cant get a thing right..
even with step by step instructions...

Banjo
10-29-2001, 03:25 AM
Does it work with the loopback address (127.0.0.1)?

ChiefRedBull
10-29-2001, 05:04 PM
set one to listen on port 127.0.0.1:12345, then get another to connect to the same.

I think my tutor on Winsock in the Tutors corner might help.....

Chief

burningodzilla
11-01-2001, 08:52 PM
here is code i wrote for tutorial purposes on multi connections w/ winsock. it's "short and sweet" which is apparently what you need

Banjo
11-02-2001, 01:36 PM
So where's the code? images/icons/wink.gif

hashir56
11-03-2001, 05:03 PM
for me, winsock never worked though VB IDE all that great, i.e. some feature ( i forgot which ones) did work correctly. so i use to comply the project when i wanted to try it.

burningodzilla
11-06-2001, 07:17 AM
oops

Banjo
11-06-2001, 07:27 AM
As you said quite limited, but there was one error there. Not in the code but in a comment. The comment in the connectionRequest event says that setting the LocalPort to zero makes it use the same port you're listening on. This is incorrect. Setting it to zero forces it to chose another random port number. It prevents you from getting "Address in Use" errors when multiple clients try to connect (they can not all be connected to one port images/icons/smile.gif).

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum