• Welcome to Valhalla Legends Archive.
 

winsock license information not found?

Started by Tontow, May 10, 2005, 12:10 PM

Previous topic - Next topic

Blaze

Quote from: Tontow on May 12, 2005, 09:37 PM
Public function sendprotocall()
        sckclient.SendData &HFF
        sckclient.SendData (1)
        sckclient.SendData MakeWORD(Len(buffer) + 4)
        sckclient.SendData &H3
end function
You only want to send the protocol byte once at the start and its before &HFF.
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Tontow

So it should be?
Quote
Public function sendprotocall()
        sckclient.SendData &H3 'id for chat
        sckclient.SendData &HFF ' byte
        sckclient.SendData (1) 'message id
        sckclient.SendData MakeWORD(Len(buffer) + 4) 'Message length
end function

R.a.B.B.i.T

No...
The format you said is a binary BNCS packet sent to Battle.Net after specifying that you will be using plaintext Telnet format.  That is a very bad thing to do.

Tontow

So all i have to send
Quote
sckclient.SendData &H3
sckclient.SendData "[email protected]"
[email protected] "pass"

correct?

(note: I'm trying to learn to connect regularly to battlenet with telnet for chat/bot befor I try useing blns to log on - kinda a walk befor you run thing for me)