Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP server API #3

Open
NiteshKant opened this issue Mar 5, 2015 · 0 comments
Open

TCP server API #3

NiteshKant opened this issue Mar 5, 2015 · 0 comments

Comments

@NiteshKant
Copy link

This issue is for discussing API for a TCP server.

(This is a dual of #2 which is the client API for TCP and hence shares multiple concepts, which are here for completeness at the cost of repetition)

Intention

To define how TCP must be modeled from a server point of view, using reactive-streams-jvm SPI.

What it is?

An abstraction over:

  • How to start a server?
  • How to shutdown a server?
  • How to process a TCP connection, upon receipt?
  • How to write to a TCP connection?
  • How to read from a TCP connection?
What it is not?

In general it should not try to arbitrate different standards across different networking libraries. A few examples of that being:

  • Define what are the ways to configure a connection, eg: connect timeout, socket backlog, etc. Netty has Channel Options, xnio has Options.
  • Define the stages of a connect process i.e how should a physical connection be created.
  • Define how does data get read or written over a physical connection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant