Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RichTextBox1.Text = "Connecting..."
Dim myClient As System.Net.Sockets.TcpClient
Dim monitor As System.Net.Sockets.NetworkStream
myClient = New System.Net.Sockets.TcpClient
myClient.Connect("useast.battle.net", 6112)
monitor = myClient.GetStream()
RichTextBox1.Text = Convert.ToString(monitor)
End Sub
im an extreme newb. what exactly have i done above? If im right it will like, connect, then get a stream of packets and put them in the textbox.
problem is when i ran it nothing happened.
once again me is newb.
Quote from: VeBee on August 04, 2006, 04:52 PM
what exactly have i done above?
So I'm guessing you didn't write this yourself.
Quote from: VeBee on August 04, 2006, 04:52 PM
problem is when i ran it nothing happened.
Are you even clicking 'Button1'?
myClient.Connect("useast.battle.net", 6112)
monitor = myClient.GetStream()
RichTextBox1.Text = Convert.ToString(monitor)
the client must send 2 messages before you be able to see something.
check this link http://bnetdocs.valhallalegends.com/sequence.php and use one sniffer to see how a bnet client does it
offtopic: hero your post seems allways the same... do u use templates?
a even bigger question i have is, how do i send a packet using vb.net?
Quote from: VeBee on August 04, 2006, 05:42 PM
a even bigger question i have is, how do i send a packet using vb.net?
I hope you have a packet buffer.
Quote from: ShadowDancer on August 04, 2006, 05:39 PM
offtopic: hero your post seems allways the same... do u use templates?
No.
ok where do i retreive a packet buffer?
is a packet buffer just a list of packets?
Quote from: VeBee on August 04, 2006, 06:10 PM
ok where do i retreive a packet buffer?
is a packet buffer just a list of packets?
You obviously have very little clue about what you are doing, I suggest going http://forum.valhallalegends.com/index.php?topic=9278.0 here before continuing.
Quote from: VeBee on August 04, 2006, 04:52 PM
NetworkStream monitor = myClient.GetStream()
RichTextBox1.Text = Convert.ToString(monitor)
This is probably one of the greatest lines of code I've seen recently.
Quote from: K on August 04, 2006, 07:17 PM
Quote from: VeBee on August 04, 2006, 04:52 PM
NetworkStream monitor = myClient.GetStream()
RichTextBox1.Text = Convert.ToString(monitor)
This is probably one of the greatest lines of code I've seen recently.
If only it was Working As Intended
TM.....
lol are you guys making fun of me? :P
Anyways i went to that web page for vb, and its for vb not vb.net.
but it did help explain tcp/ip.
And i dont know how to send packets yet.
Quote from: VeBee on August 04, 2006, 10:38 PM
lol are you guys making fun of me? :P
Anyways i went to that web page for vb, and its for vb not vb.net.
but it did help explain tcp/ip.
And i dont know how to send packets yet.
http://forum.valhallalegends.com/index.php?action=search
Search: Packet buffer
my spider made a eek sound when i did my search. i dont think im ready to use a packet buffer.
well i got to goto bed. ill be back tommorow.
Quote from: VeBee on August 04, 2006, 11:04 PM
my spider made a eek sound
That really confused me.