Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        //IPHostEntry hostEntry = Dns.GetHostEntry(Dns.GetHostName());
        //System.Net.IPAddress hostAddress = hostEntry.AddressList[0];
        //Debug.Log(hostEntry.HostName);
        m_hostAddress = "127.0.0.1";

        m_transport = new NetLib.TransportTCP();
        m_transport.DebugPrintFunc = Debug.Log;
        m_transport.Start();

        m_message = new List <string>();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        StaticCompositeResolver.Register(new IFormatterResolver[]
        {
            MessagePack.Resolvers.GeneratedResolver.Instance,
            MessagePack.Resolvers.StandardResolver.Instance
        });

        var resolver = StaticCompositeResolver.Instance;

        MessagePackSerializer.DefaultOptions = MessagePackSerializerOptions.Standard.WithResolver(resolver);



        m_hostAddress = "127.0.0.1";

        m_transport = new NetLib.TransportTCP();
        m_transport.DebugPrintFunc = Debug.Log;
        m_transport.Start();

        m_message = new List <string>();
    }