/// <summary> /// Binds this container to a new socket if it is NOT already bound. /// </summary> /// <param name="binder"></param> public void Bind(SocketBinder binder) { if (Binder != null && Socket >= 0) { return; } Binder = binder; Socket = Binder.Bind(); }
/// <summary> /// Binds this container to a new socket if it is NOT already bound. /// </summary> /// <param name="binder"></param> public void Bind( SocketBinder binder ) { if ( Binder != null && Socket >= 0 ) return; Binder = binder; Socket = Binder.Bind(); }
/// <summary> /// Instantiates an instance of the SocketContainer class usign the specified SocketBinder. /// </summary> /// <param name="binder"></param> public SocketContainer( SocketBinder binder ) { Binder = binder; Socket = Binder.Bind(); }
/// <summary> /// Instantiates an instance of the SocketContainer class usign the specified SocketBinder. /// </summary> /// <param name="binder"></param> public SocketContainer(SocketBinder binder) { Binder = binder; Socket = Binder.Bind(); }