wsky / top-link

embedded duplex multi-channel endpoint and connection management for c#/java/...
6 stars 1 forks source link

write a simple and embedded network layer #30

Closed wsky closed 11 years ago

wsky commented 11 years ago

avoid depend third-part lib, just easy to use, only deal nio read/receive, no extension support.

wsky commented 11 years ago

combine https://github.com/wsky/websocket-client

wsky commented 11 years ago

remoting embedded ws config:

RemotingService.setChannelSelector(new EmbeddedClientChannelPooledSelector());
RemotingService.setChannelSelector(new EmbeddedClientChannelSharedSelector());
RemotingConfiguration.configure().clientChannelSelector(new EmbeddedClientChannelSharedSelector());
wsky commented 11 years ago

endpoint embedded ws config:

Endpoint e = new Endpoint(id);
e.setClientChannelSelector(new EmbeddedClientChannelSharedSelector());
wsky commented 11 years ago

need to improve out/inbound buffer pool to websocket-client

wsky commented 11 years ago

server is necessarily for java