| | | 1 | | // Copyright (c) ZeroC, Inc. |
| | | 2 | | |
| | | 3 | | namespace Ice.Internal; |
| | | 4 | | |
| | | 5 | | internal class WSAcceptor : Acceptor |
| | | 6 | | { |
| | 1 | 7 | | public void close() => _delegate.close(); |
| | | 8 | | |
| | | 9 | | public EndpointI listen() |
| | | 10 | | { |
| | 1 | 11 | | _endpoint = _endpoint.endpoint(_delegate.listen()); |
| | 1 | 12 | | return _endpoint; |
| | | 13 | | } |
| | | 14 | | |
| | 1 | 15 | | public bool startAccept(AsyncCallback callback, object state) => _delegate.startAccept(callback, state); |
| | | 16 | | |
| | 1 | 17 | | public void finishAccept() => _delegate.finishAccept(); |
| | | 18 | | |
| | 1 | 19 | | public Transceiver accept() => new WSTransceiver(_instance, _delegate.accept()); |
| | | 20 | | |
| | 0 | 21 | | public string protocol() => _delegate.protocol(); |
| | | 22 | | |
| | 1 | 23 | | public override string ToString() => _delegate.ToString(); |
| | | 24 | | |
| | 1 | 25 | | public string toDetailedString() => _delegate.toDetailedString(); |
| | | 26 | | |
| | 0 | 27 | | public Acceptor getDelegate() => _delegate; |
| | | 28 | | |
| | 1 | 29 | | internal WSAcceptor(WSEndpoint endpoint, ProtocolInstance instance, Acceptor del) |
| | | 30 | | { |
| | 1 | 31 | | _endpoint = endpoint; |
| | 1 | 32 | | _instance = instance; |
| | 1 | 33 | | _delegate = del; |
| | 1 | 34 | | } |
| | | 35 | | |
| | | 36 | | private WSEndpoint _endpoint; |
| | | 37 | | private readonly ProtocolInstance _instance; |
| | | 38 | | private readonly Acceptor _delegate; |
| | | 39 | | } |