tcp: Add connect event
tls: Extend TLS context and define session context