//esocket es;
    // Use this for initialization
    void Start()
    {
        esocket es = new esocket("127.0.0.1", 9988);

        //SocketProxy spt = new SocketProxy (ts (), es);
        SocketProxy spr = new SocketProxy(rs(), es);

        //StartCoroutine (spt.Proxy());
        StartCoroutine(spr.Proxy());
    }
Example #2
0
    /*
     * public SocketProxy(IEnumerator ie, SocketCallback Callback) {
     *      this.ie = ie;
     *      this.Callback = Callback;
     *
     *      this.es = new esocket ("127.0.0.1", 9988);
     * }
     */

    public SocketProxy(IEnumerator ie, /*SocketCallback Callback, */ esocket es)
    {
        this.ie = ie;
        //this.Callback = Callback;
        this.es = es;
    }