Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        // sets blocking value.
        client.SetBlockingSockets(blocking);

        // set timeout values
        SetSendTimeout(sendTimeout);
        SetReceiveTimeout(receiveTimeout);


        // runs the client.
        if (runOnStart)
        {
            RunClient();
        }
    }
Ejemplo n.º 2
0
 // sets the blocking sockets variable
 public static void SetBlockingSockets(bool blocking)
 {
     client.SetBlockingSockets(blocking);
 }