lmb2001
12-27-2001, 10:07 AM
I have cable internet and yet my winsock sontrol is <font color=red>EXTREAMLY </font color=red> slow when connecting.
What could be wrong?
What could be wrong?
slow socklmb2001 12-27-2001, 10:07 AM I have cable internet and yet my winsock sontrol is <font color=red>EXTREAMLY </font color=red> slow when connecting. What could be wrong? Volte 12-27-2001, 10:08 AM Connecting to what? It could be that whatever you are connecting to on the other end has a slow internet connection. You're only as fast as the slowest connection. divil 12-27-2001, 10:09 AM Since you give us no information, the only logical conclusion I can draw is that it is your code which is making it appear slow. lmb2001 12-27-2001, 10:13 AM <font color=blue>EXAMPLE</font color=blue> so if i use it to connect to say google.com (which is realtively fast server) it will be faster than connecting to movies.com(slower server than most) the sock will move faster? Volte 12-27-2001, 10:15 AM Yes, something like that. images/icons/smile.gif You know how you go to a site that's slow\busy and it takes a while to load the pages, etc.? Same sorta thing with WinSock. lmb2001 12-27-2001, 10:17 AM k i want to use a for..next llop to search thru the first 100 ports of an IP then show the port and its state in an listbox.. im have a load of troubles.. <font color=green> this is used to see if it is either a webpage(port 80) if FTP is enabled (port 20 or 21) if telnet is active (port 25 i think) and ETC </font color=green> can any ppl give an skeleton type code that I could use to acomplish this? lmb2001 12-27-2001, 10:18 AM thanks buddy, so its not my comp/control? thats spells relief ( like R-O-L-A-I-D-S lol) divil 12-27-2001, 10:22 AM Try www.portscannersfornewbies.com lmb2001 12-27-2001, 10:24 AM <font color=yellow>what about this?</font color=yellow> for ii = 1 to 100 sock.port = ii sock.connect me.txtIP , me.Sock.Port (this is where I need to code to add port # and port state into a listbox) next lmb2001 12-27-2001, 10:26 AM that wasn't a valid URL lmb2001 12-27-2001, 10:38 AM I get a buffer overload error wqhe this code is ran... and the lStatus only adds "port # is unknown" could it because the sckScan.State = sckConnecting? [[then again I am scanning my own IP (is that the prob?)]] ---------------------------------------------------------------- <font color=red> Here is the code:</font color=red> ----------------------------------------------------------------- Private Sub cmdScan_Click() Me.cmdScan.Enabled = False For iI = 1 To 100 Port = iI Me.sckScan.Connect Me.txtIP, Port If Me.sckScan.State = sckConnected Then Me.lStatus.AddItem "Port: " & Port & " is Connectable." ElseIf Me.sckScan.State = sckClosed Then Me.lStatus.AddItem "Port: " & Port & " is Closed." ElseIf Me.sckScan.State = sckError Then Me.lStatus.AddItem "Port: " & Port & " is Errored." Else Me.lStatus.AddItem "Port: " & Port & " is Unknown as of yet." End If Me.sckScan.Close Next Me.cmdScan.Enabled = True End Sub Volte 12-27-2001, 01:15 PM OK, lmb, making a port-scanner can be considered a hacking sort of thing, so I wouldn't expect too many people to help you too much here... |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum