예제 #1
0
 public static SocketAPI GetInstance()
 {
     if (instance == null)
     {
         instance = new SocketAPI();
         instance.Connect();
     }
     return(instance);
 }
예제 #2
0
        //getter and setter
        //public string ID { get; set; }

        // constructor
        public VoiceAPI()
        {
            socket = SocketAPI.GetInstance().GetSocket();
        }