Skip to content

Conversation

okkez
Copy link
Contributor

@okkez okkez commented Mar 29, 2018

No description provided.

@okkez
Copy link
Contributor Author

okkez commented Mar 29, 2018

Is this good approach?

@okumin

@okumin
Copy link
Owner

okumin commented Apr 6, 2018

@okkez I have an approximate approach in a local machine.
My approach abstracts a TCP channel.

abstract TcpChannel {
  boolean read();
  boolean write();
}
class TlsPlaintextChannel extends TcpChannel {
…… // implements a normal socket processing
}
class TlsTcpChannel extends TcpChannel {
…… // implements a secure socket processing
}

I have non-strong confidence abount this approach, so let me think for a shot time.

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

Successfully merging this pull request may close these issues.

2 participants