using System.Threading;
using Sfs2X;

class Program
{
    /// 
    /// SmartFoxServer への接続と切断
    /// 
    /// 
    static void Main(string[] args) {

        // 1. SmartFoxServer 2X API をインスタンス化
        SmartFox smartFox = new SmartFox(true);

        // 2. サーバーに接続
        smartFox.Connect("127.0.0.1", 9933);

        // 3. 3秒間待機
        Thread.Sleep(3000);

        // 4. サーバーから切断
        smartFox.Disconnect();
    }
}
inserted by FC2 system