2018-08-14 09:13:02 +00:00
|
|
|
|
// the transport layer implementation
|
|
|
|
|
|
|
|
|
|
namespace UnityEngine.Networking
|
|
|
|
|
{
|
|
|
|
|
public static class Transport
|
|
|
|
|
{
|
|
|
|
|
public static Telepathy.Client client = new Telepathy.Client();
|
|
|
|
|
public static Telepathy.Server server = new Telepathy.Server();
|
|
|
|
|
|
2018-08-14 20:15:34 +00:00
|
|
|
|
// hlapi needs to know max packet size to show warnings
|
|
|
|
|
public static int MaxPacketSize = ushort.MaxValue;
|
|
|
|
|
|
2018-08-14 09:13:02 +00:00
|
|
|
|
static Transport()
|
|
|
|
|
{
|
|
|
|
|
// tell Telepathy to use Unity's Debug.Log
|
|
|
|
|
Telepathy.Logger.LogMethod = Debug.Log;
|
|
|
|
|
Telepathy.Logger.LogWarningMethod = Debug.LogWarning;
|
|
|
|
|
Telepathy.Logger.LogErrorMethod = Debug.LogError;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|