Author Topic: RFC for TNet server  (Read 4395 times)

Sokharev

  • Guest
RFC for TNet server
« on: February 20, 2013, 03:04:08 AM »
Hello ArenMook, i'am trying to estimate is it possible to use TNet in our project. As i understand RFC good to use when you have one host and other players.
But for example we have "farm-like"(or Clash of clans :) ) server where thousands of people connecting to server and doing some interactions with it( rather than each other ).
If we going this way to me it's may be convenient to make server also "RFC" capable. And have something like following:
serverInstance.Invoke("Auth", credentials, playerId );
serverInstance.Invoke("GetPlayerProfile" );
As understand your TNet have sources included and we could try to write own "RFC" implementation for server, but i would like to know your opinion is it right way and may be you have plans to develop something regarding this.
Currently we're using Photon and some "gigantic" wrappers for RPC stuff. But i found your implementation "quite lite, sources included and good designed".
Also i've checked signalr ( here good example of their hubs/remote invocation concepts - https://github.com/SignalR/SignalR/wiki/SignalR-Client-Hubs ) - but it's more about web and your package very strong about .net + unity that's why i like it. Thank you.
« Last Edit: February 20, 2013, 03:15:56 AM by Sokharev »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: RFC for TNet server
« Reply #1 on: February 20, 2013, 06:41:41 AM »
I suggest adding new packet types for this. RFCs are only for clients -- they contain ID of the object that sent them, and are scene-specific (as object IDs will vary from scene to scene). You will be able to use BeginSend/EndSend to send custom packets to the server just as easily as sending RFCs.

KeithT

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 55
    • View Profile
Re: RFC for TNet server
« Reply #2 on: February 23, 2013, 04:56:46 AM »
We are going through this process as well and need to use the framework for Client-Server not just Client-Client.

Anyone got this working, done an example ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: RFC for TNet server
« Reply #3 on: February 23, 2013, 06:27:25 AM »
I am currently working on two more video tutorials for TNet. One of them will cover the creation of custom packets.