• Welcome to Valhalla Legends Archive.
 

Logging Stuff

Started by VeBee, August 04, 2006, 04:52 PM

Previous topic - Next topic

VeBee

    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.

Hero

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'?

ShadowDancer

        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?
Quote from: MyndFyre-vL
No. We help people who help themselves.
http://sourceforge.net/projects/d2gs
http://assembla.com/space/d2gs

VeBee

#3
a even bigger question i have is, how do i send a packet using vb.net?

Hero

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.

VeBee

ok where do i retreive a packet buffer?

is a packet buffer just a list of packets?

l2k-Shadow

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: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

K

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.

MyndFyre

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 IntendedTM.....
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

VeBee

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.

Hero

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

VeBee

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.

Hero

Quote from: VeBee on August 04, 2006, 11:04 PM
my spider made a eek sound
That really confused me.