public Socket AcceptSocket() { if (InternalSocket == null) { throw new InvalidOperationException( //"Not listening. You must call the Start() method before calling this method." ); } var r = default(__Socket); try { r = new __Socket { InternalSocket = this.InternalSocket.accept() }; } catch { throw; } return((Socket)(object)r); }
public Socket AcceptSocket() { if (InternalSocket == null) throw new InvalidOperationException( //"Not listening. You must call the Start() method before calling this method." ); var r = default(__Socket); try { r = new __Socket { InternalSocket = this.InternalSocket.accept() }; } catch { throw; } return (Socket)(object)r; }