gettingstarted.rst revision a5fa05f9
1afe3d363SDmitri TikhonovGetting Started
2afe3d363SDmitri Tikhonov===============
3afe3d363SDmitri Tikhonov
4afe3d363SDmitri TikhonovSupported Platforms
5afe3d363SDmitri Tikhonov-------------------
6afe3d363SDmitri Tikhonov
7afe3d363SDmitri TikhonovLSQUIC compiles and runs on Linux, FreeBSD, and Mac OS.  It has been
8afe3d363SDmitri Tikhonovtested on i386, x86_64, as well as Raspberry Pi.
9afe3d363SDmitri Tikhonov
10afe3d363SDmitri TikhonovWindows support is on the TODO list.
11afe3d363SDmitri Tikhonov
12afe3d363SDmitri TikhonovDependencies
13afe3d363SDmitri Tikhonov------------
14afe3d363SDmitri Tikhonov
15afe3d363SDmitri TikhonovLSQUIC library uses:
16afe3d363SDmitri Tikhonov
17afe3d363SDmitri Tikhonov- zlib_;
18afe3d363SDmitri Tikhonov- BoringSSL_; and
19a5fa05f9SDmitri Tikhonov- `ls-hpack`_ (as a Git submodule).
20afe3d363SDmitri Tikhonov- `ls-qpack`_ (as a Git submodule).
21afe3d363SDmitri Tikhonov
22afe3d363SDmitri TikhonovThe accompanying demo command-line tools use libevent_.
23afe3d363SDmitri Tikhonov
24afe3d363SDmitri TikhonovWhat's in the box
25afe3d363SDmitri Tikhonov-----------------
26afe3d363SDmitri Tikhonov
27afe3d363SDmitri Tikhonov- ``src/liblsquic`` -- the library
28afe3d363SDmitri Tikhonov- ``test`` -- demo client and server programs
29afe3d363SDmitri Tikhonov- ``test/unittests`` -- unit tests
30afe3d363SDmitri Tikhonov
31afe3d363SDmitri TikhonovBuilding
32afe3d363SDmitri Tikhonov--------
33afe3d363SDmitri Tikhonov
34afe3d363SDmitri TikhonovTo build the library, follow instructions in the README_ file.
35afe3d363SDmitri Tikhonov
36afe3d363SDmitri TikhonovDemo Examples
37afe3d363SDmitri Tikhonov-------------
38afe3d363SDmitri Tikhonov
39afe3d363SDmitri TikhonovFetch Google home page:
40afe3d363SDmitri Tikhonov
41afe3d363SDmitri Tikhonov::
42afe3d363SDmitri Tikhonov
43afe3d363SDmitri Tikhonov    ./http_client -s www.google.com -p / -o version=Q050
44afe3d363SDmitri Tikhonov
45afe3d363SDmitri TikhonovRun your own server (it does not touch the filesystem, don't worry):
46afe3d363SDmitri Tikhonov
47afe3d363SDmitri Tikhonov::
48afe3d363SDmitri Tikhonov
49afe3d363SDmitri Tikhonov    ./http_server -c www.example.com,fullchain.pem,privkey.pem -s 0.0.0.0:4433
50afe3d363SDmitri Tikhonov
51afe3d363SDmitri TikhonovGrab a page from your server:
52afe3d363SDmitri Tikhonov
53afe3d363SDmitri Tikhonov::
54afe3d363SDmitri Tikhonov
55afe3d363SDmitri Tikhonov    ./http_client -H www.example.com -s 127.0.0.1:4433 -p /
56afe3d363SDmitri Tikhonov
57afe3d363SDmitri TikhonovYou can play with various options, of which there are many.  Use
58afe3d363SDmitri Tikhonovthe ``-h`` command-line flag to see them.
59afe3d363SDmitri Tikhonov
60afe3d363SDmitri TikhonovNext steps
61afe3d363SDmitri Tikhonov----------
62afe3d363SDmitri Tikhonov
63afe3d363SDmitri TikhonovIf you want to use LSQUIC in your program, check out the :doc:`tutorial` and
64afe3d363SDmitri Tikhonovthe :doc:`apiref`.
65afe3d363SDmitri Tikhonov
66afe3d363SDmitri Tikhonov:doc:`internals` covers some library internals.
67afe3d363SDmitri Tikhonov
68afe3d363SDmitri Tikhonov.. _zlib: https://www.zlib.net/
69afe3d363SDmitri Tikhonov.. _BoringSSL: https://boringssl.googlesource.com/boringssl/
70a5fa05f9SDmitri Tikhonov.. _`ls-hpack`: https://github.com/litespeedtech/ls-hpack
71afe3d363SDmitri Tikhonov.. _`ls-qpack`: https://github.com/litespeedtech/ls-qpack
72afe3d363SDmitri Tikhonov.. _libevent: https://libevent.org/
73afe3d363SDmitri Tikhonov.. _README: https://github.com/litespeedtech/lsquic/blob/master/README.md
74