// 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(); } }
// sets the blocking sockets variable public static void SetBlockingSockets(bool blocking) { client.SetBlockingSockets(blocking); }