lurv Posted January 7, 2016 Author Share Posted January 7, 2016 How would i go about sending data to the client?Example: I'd make a server side variable and then have the client display it somewhere in frmMain. Link to comment Share on other sites More sharing options...
Coyote Posted January 7, 2016 Share Posted January 7, 2016 Its actually super easy.Do this on both client and server:modEnumerationsadd a new packet like STestServer Only:in modServerTCP add new subSub SendTestData(byval index as long)dim buffer as clsbufferset buffer = new clsbufferbuffer.writelong STestbuffer.writelong LONGYOUWANTTOWRITEbuffer.writestring STRINGYOUWANTTOWRITESendatato index,buffer.toarray()set buffer = nothingEnd subNow 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now