示例#1
0
 /// <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();
 }
示例#4
0
 /// <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();
 }