Esempio n. 1
0
            public string GetPeerName(out uint port)
            {
                uint myPort = 0;

                sbyte[] addr = new sbyte[256];
                unsafe
                {
                    fixed(sbyte *str = addr)
                    {
                        ServerCoreLoader.GetPeerName(m_sh, ref myPort, str, 256);
                    }

                    port = myPort;
                    fixed(sbyte *p = addr)
                    {
                        return(new string(p));
                    }
                }
            }