On Thursday, October 10, 2013 9:03:56 AM UTC-4, mscdex wrote:
>
> On Wednesday, October 9, 2013 9:52:10 PM UTC-4, Rong Tang wrote:
>>
>> I'm trying to setup up a tcp server that handles http request most of the 
>> time, but sometimes need to setup up a tls session with the client after 
>> some http header exchange. I know I can setup a tls.server listening on 
>> another port, and forward the client socket to that port, but the IPC is 
>> needed and the data need to be copied back and forth.
>>
>>
> You can always upgrade the socket with `tls.connect({ socket: tcpsocket }, 
> upgradecallback);`[1]
>
> [1] 
> http://nodejs.org/docs/latest/api/tls.html#tls_tls_connect_options_callback
>
 Thanks a lot for the tips! I think maybe tls.createSecurePair is what I'm 
looking for. I will check them in more detail.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to