public IDatagramSocket CreateDatagramSocket(int timeout)
        {
            if (timeout < 1)
            {
                throw new ArgumentOutOfRangeException("timeout");
            }

            var result = new SocketImpl(timeout);
            return result;
        }
        public IDatagramSocket CreateDatagramSocket(int timeout)
        {
            if (timeout < 1)
            {
                throw new ArgumentOutOfRangeException("timeout");
            }

            var result = new SocketImpl(timeout);

            return(result);
        }
Beispiel #3
0
 public static SocketStream FromSocket(Socket socket, SocketImpl impl)
 {
     if (impl == SocketImpl.SocketStream2)
     {
         return(new SocketStream2(socket));
     }
     if (impl == SocketImpl.SocketStreamFa)
     {
         return(new SocketStreamFa(socket));
     }
     if (impl == SocketImpl.YASocket)
     {
         return(new YASocket(socket));
     }
     return(new SocketStream1(socket));
 }
                public IStreamSocket CreateStreamSocket(int timeout)
                {
                    var result = new SocketImpl(this);

                    return(result);
                }
Beispiel #5
0
 public static void SetSocketImpl(string str)
 {
     CurrentSocketImpl = GetSocketImplFromString(str);
     Logging.info("Current SocketStream implementation: " + CurrentSocketImpl);
 }
Beispiel #6
0
 protected virtual void accept(SocketImpl prm1)
 {
 }
 protected override void accept(SocketImpl prm1)
 {
 }
Beispiel #8
0
        /// <summary>
        /// Accepts a connection.
        /// </summary>
        /// <param name="s">   the accepted connection. </param>
        /// <exception cref="IOException">  if an I/O error occurs when accepting the
        ///               connection. </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: protected abstract void accept(SocketImpl s) throws java.io.IOException;
        protected internal abstract void Accept(SocketImpl s);
 public IDatagramSocket CreateDatagramSocket(int timeout)
 {
     var result = new SocketImpl(this);
     return result;
 }
Beispiel #10
0
 protected virtual void acceptFrom(SocketImpl prm1, InetSocketAddress prm2)
 {
 }
Beispiel #11
0
 public Socket(SocketImpl prm1)
 {
 }