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); }
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); }
public static void SetSocketImpl(string str) { CurrentSocketImpl = GetSocketImplFromString(str); Logging.info("Current SocketStream implementation: " + CurrentSocketImpl); }
protected virtual void accept(SocketImpl prm1) { }
protected override void accept(SocketImpl prm1) { }
/// <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; }
protected virtual void acceptFrom(SocketImpl prm1, InetSocketAddress prm2) { }
public Socket(SocketImpl prm1) { }