Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: erase on December 22, 2002, 09:27 AM

Title: Proxy support with VB
Post by: erase on December 22, 2002, 09:27 AM
Has anyone implemented proxy support for their bot? (VB)
If so, I'd like to know how you went about it.
Thanks
Title: Re: Proxy support with VB
Post by: SiMi on December 22, 2002, 09:46 AM
hrm if you mean Socks, Yes i can add that
If you need the source contact me
Title: Re: Proxy support with VB
Post by: Grok on December 22, 2002, 10:36 AM
Is VB proxy code not posted on documents or botdev to do that?  I'm sure it was in the past.  Let me know.  If not, I'm pretty sure I can find it and post it again.
Title: Re: Proxy support with VB
Post by: l)ragon on December 22, 2002, 06:55 PM
It was on your main page at one point.

~l)ragon
Title: Re: Proxy support with VB
Post by: Spht on December 23, 2002, 05:57 AM
Are you referring to this?
http://botdev.valhallalegends.com/documents/vbsocks5.html
Title: Re: Proxy support with VB
Post by: Atom on December 23, 2002, 08:15 PM
'Copy ip long into a struct with 4 byte members
      Dim server As Long
      server = inet_addr(ServerList.Text)
      CopyMemory INet(0), server, 4

      sGet = sGet & Chr(INet(0)) & Chr(INet(1)) & Chr(INet(2)) & Chr(INet(3))
      Dim sPort1, sPort2 As Long

i dont know what hes doin here
Title: Re: Proxy support with VB
Post by: Skywing on December 24, 2002, 04:58 PM
Quote'Copy ip long into a struct with 4 byte members
      Dim server As Long
      server = inet_addr(ServerList.Text)
      CopyMemory INet(0), server, 4

      sGet = sGet & Chr(INet(0)) & Chr(INet(1)) & Chr(INet(2)) & Chr(INet(3))
      Dim sPort1, sPort2 As Long

i dont know what hes doin here
That's converting an IP address in dotted quad format to a DWORD inside of a VB string.
Title: Re: Proxy support with VB
Post by: Mesiah / haiseM on December 25, 2002, 04:45 PM
Yes, most anything u see in vb that uses copymemory has to do with turning an integer into a dword or something like that
Title: Re: Proxy support with VB
Post by: 0xeRb on December 26, 2002, 04:03 PM
that source doesnt work.
Title: Re: Proxy support with VB
Post by: Atom on December 26, 2002, 09:47 PM
Quotethat source doesnt work.
its not a source its  a doc, you prolly copied it as is you...
Title: Re: Proxy support with VB
Post by: Celica on December 28, 2002, 10:05 AM
Can somone fix that doc and put it more indepth? The reason is because when you send the first thing to the proxy you receave Chr(0) and Chr(4) but when you receive that you send another thing using the same winsock and receive chr(0) so it binds up with the first chr(0) receave...