[Jprogramming] Socket library: host name plus path

Ed Gottsman edward.j.gottsman at gmail.com
Thu Jul 1 18:44:41 UTC 2021


Hello.  I've begun working with the socket library.  I can use it to resolve host names:

sdgethostbyname 'stream.data.alpaca.markets'

┌─┬─┬────────────┐
│0│2│38.122.35.99│
└─┴─┴────────────┘

Unfortunately, both the code (to the extent that I've been able to understand it) and the documentation suggest that only a "raw" host can be used to identify an endpoint.  So, for example, there seems to be no way to connect to

'stream.data.alpaca.markets/v2/sip' or '38.122.35.99/v2/sip'

...which is what I'd like to do.

I've mucked around trying to hit the DLL more directly--just passing it a url--but it's a pretty desperate approach and unlikely to succeed.  I'd very much appreciate any ideas the community might have.

Btw: I checked the nabble archive for an answer and all the emails’ contents read, “…the author has deleted this message.”  So while the nabble search engine did turn up a lot of socket traffic (which is encouraging), it wasn’t of much help.

Thank you.

Ed

Sent from my iPad


More information about the Programming mailing list