@@ -0,0 +1,942 @@
+package com.wizzardo.epoll;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Created by wizzardo on 07.05.15.%0A */%0Apublic class SecuredConnection extends Connection %7B%0A%0A    protected long ssl;%0A    protected boolean accepted;%0A%0A    public SecuredConnection(int fd, int ip, int port) %7B%0A        super(fd, ip, port);%0A    %7D%0A%0A    @Override%0A    public void close() throws IOException %7B%0A        if (ssl != 0)%0A            epoll.closeSSL(ssl);%0A        super.close();%0A    %7D%0A%0A    protected int write(int fd, long bbAddress, int offset, int length) throws IOException %7B%0A        return epoll.writeSSL(fd, bbAddress, offset, length, ssl);%0A    %7D%0A%0A    @Override%0A    protected int read(int fd, long bbAddress, int offset, int length) throws IOException %7B%0A        if (ssl == 0)%0A            ssl = epoll.createSSL(fd);%0A%0A        if (!accepted && !(accepted = epoll.acceptSSL(ssl)))%0A            return 0;%0A%0A        return epoll.readSSL(fd, bbAddress, offset, length, ssl);%0A    %7D%0A%7D%0A

add SecuredConnection