Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Tutorial Request: Sending data to client


lurv
 Share

Recommended Posts

Its actually super easy.

Do this on both client and server:

modEnumerations
add a new packet like STest

Server Only:

in modServerTCP add new sub

Sub SendTestData(byval index as long)
dim buffer as clsbuffer
set buffer = new clsbuffer
buffer.writelong STest
buffer.writelong LONGYOUWANTTOWRITE
buffer.writestring STRINGYOUWANTTOWRITE
Sendatato index,buffer.toarray()
set buffer = nothing
End sub

Now on client side go to modHandleData and take a look to other subs and you will figure it out. Its super easy.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...