http://nodejs.org/api/http.html#http_http_request_options_callback :

Options: 

   - host: A domain name or IP address of the server to issue the request 
   to. Defaults to 'localhost'.
   - hostname: To support url.parse() hostname is preferred over host
   - port: Port of remote server. Defaults to 80.
   - localAddress: Local interface to bind for network connections.
   - *socketPath*: Unix Domain Socket (use one of host:port or socketPath)



Am Donnerstag, 17. Oktober 2013 22:33:53 UTC+2 schrieb Geoff Van Brunt:
>
> I have an app in which a hardware device will connect and keep a socket 
> open. I then need to make rest calls using that same socket. How can an use 
> http.request and assign a socket to it? I've been searching low and high 
> for some insight on this, but so far no luck. I found some outdated stuff 
> before the days of the agent etc, but nothing current.
>
> Any help would be appreciated.
>
> Thanks
> Geoff Van Brunt
>

-- 
-- 
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