Skip to content

Create LiteAcceptor to expose socket data in a standard way for TJWS acceptors #27

@yaronyg

Description

@yaronyg

#25 calls for us to provide standard connection information and #26 depends on this to discover what port the server is listening on when we use port 0. But a complication is that the acceptors used by TJWS do not have a standard way of providing the serverSocket that powers #25.

To work around this I propose that we define an interface:

package com.couchbase.lite.listener;

/**
 * Created by yarong on 11/15/13.
 */
public interface LiteAcceptor {
    public SocketStatus getSocketStatus();
}

So all acceptors used by the Listener would be required to support this interface.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions