unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Programming > Visual Basic

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2006, 07:24 AM
zero_tolerance zero_tolerance is offline
Senior Member
 
Join Date: Dec 2006
Posts: 289
Default VB Send and Recive Data (Winsock)

By WHERE

Well here is my lil ol Winsock guide for all you (MMORPG?....meh.) General gamers out there..

Step 1: goto the toolbar -> right click -> componants -> Microsoft Winsock Componant

Step2: Make a SendData function

PHP Code:
Function SendData(Packet As String) As String
On Error Resume Next
Form1
.Winsock1.SendData Packet
End 
Function 
Step 3: Make a Listbox

Step 4: Make a dataarrival Sub

PHP Code:
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
 
Dim strdata As String
   Winsock1
.GetData strdata 
Send strdata to List1.AddItem

PHP Code:
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
 
Dim strdata As String
   Winsock1
.GetData strdata
List1
.AddItem strdata 
Connect

PHP Code:
Winsock1.Close
Port 
Val(Text3.Text)
IP Text2.Text
Winsock1
.Connect IPPort
DoEvents 
(text3.text being the port textbox, and text2 the IP, place this code into a button....easier...and this was using the UDP protocol.)

finally send data, lets say the chat packet is (hex) 01 02 & "text" & 00, you send this

PHP Code:
SendData Chr(&H1) & Chr(&H2) & "text" Chr(0
end tutorial.




*sorry if this has been posted before.*
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
data, recive, send, winsock

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:17 PM.