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

How can I send between client and server [developers only]


pegas7team
 Share

Recommended Posts

hi all and soory for my bat english

First i would like to thank all the team how’s investing time in this Project

I m in middle of creating of additional function in my game so my question is what is the function responsible for sending information form client to server and how can i get the response in my client ?

A simple example will be very helpful

i will be very thankful for answering this question
Link to comment
Share on other sites

My eye's Need glasses to read this letter. Try to use more bigger font size..

All you need to do on responding Client to Server and Server to Client is head over their TCP..

Add a Send data . Then add a CName(Name it what ever you want) or SName(Again)

Then at their HandleData there should it be..

Sorry if you don't understand it..
Link to comment
Share on other sites

  • 1 month later...
thanks Sherwin and if i understand you the function

```
sendData(CName(playerxxx),HandleData("my varible here"))
```

send data from client to server and i have to test the varible comming form the function :

```
HandleData("my varible here")
```
then i send it back using the same function

```
sendData(CName(playerxxx),HandleData("responce here"))
```
is that correct !

by the way you reply speed is impressive
Link to comment
Share on other sites

Make new sub for sending data in f.e. Client TCP. Try to copy some of what are there already. Then make new variable in enum CMSG, then in that sub use Buffer.Writelong C(Variable), then in server add same variable to enum CMSG, then handle it in sub InitMessages,and then make sub what will handle procedures with that packet.
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...