xvxx/ldpl-socket

URL support

Lartu opened this issue ยท 3 comments

Lartu commented

Hi there! Does this company support connecting URLs instead of plain IPs? I had some problems with this when I wrote the LDPL IRC Bot library, and solved it using this.

If your library doesn't support URLs, please consider using this add-on. I will try to upload it as a library asap, but you can get it from that link atm.

Lartu commented

I have compiled and uploaded said library here: https://github.com/Lartu/ldpl-url-resolver

xvxx commented

The LDPL-SOCKET COMPANY and all its subdivisions and wholly owned subsidiaries do support hostnames, in theory. I use that feature in Gild and just added a simple Gopher example to this repo that will prompt you for a hostname and then fetch a raw Gopher response:

$ ldpl examples/gopher-client.ldpl
* Loading examples/gopher-client.ldpl
* Compiling examples/gopher-client.ldpl
* Compiling examples/../ldpl_socket/ldpl_socket.ldpl
* Including C++ extension examples/../ldpl_socket/ldpl_socket.cpp
* Building examples/gopher-client-bin
* Saved as examples/gopher-client-bin
* File(s) compiled successfully.
$ ./examples/gopher-client-bin
~ Enter hostname of Gopher server: sdf.org
~ Response from sdf.org:70 on socket 3:
iWelcome to the SDF Public Access UNIX System .. est. 1987.....

What error or issue were you running into? I'm sure there are still bugs here. ๐Ÿ› ๐Ÿž ๐Ÿ

Lartu commented

Wonderful! I wasn't running into any errors or issues, I just wanted to know, haha. Great to know that it works, thank you very much!