Code example for SocketChannel

Methods: socket

     * @param key the Selection key provided by the {@link Selector}. 
     * @throws ICPException 
     void init(SocketChannel channel) throws ICPException {
        if (log.isLoggable(Level.FINE)) {
            log.fine("initialize ssl tooling");
        helper = new SSLEngineHelper(getRemoteHost(), channel.socket().getPort(), this);
     * first try to send ssl close packet, then close channel 
     * @throws IOException 
    public void close() throws IOException { 
Stop searching for code, let great code find you!  Add Codota to your java IDE