dissertation-4-dissertation/LanguageSamples/languagesamples.tex

29 lines
1.0 KiB
TeX
Raw Normal View History

2021-01-29 14:45:21 +00:00
%!TEX root = ../thesis.tex
% ********************** Thesis Appendix A - Language Samples *************************
\chapter{Language Samples}
\label{appendix:language-samples}
\begin{figure}
2021-01-29 22:43:23 +00:00
\inputminted[firstline=1,lastline=48]{cpp}{LanguageSamples/Samples/main.cpp}
2021-01-29 14:45:21 +00:00
\caption{A sample script written in C++ to collect packets from a TUN interface and print them from multiple threads}
\label{fig:cpp-tun-sample}
\end{figure}
\begin{figure}
\ContinuedFloat
2021-01-29 22:43:23 +00:00
\inputminted[firstline=49]{cpp}{LanguageSamples/Samples/main.cpp}
2021-01-29 14:45:21 +00:00
\end{figure}
\begin{figure}
2021-01-29 22:43:23 +00:00
\inputminted{rust}{LanguageSamples/Samples/main.rs}
2021-01-29 14:45:21 +00:00
\caption{A sample script written in Rust to collect packets from a TUN interface and print them from multiple threads}
\label{fig:rust-tun-sample}
\end{figure}
\begin{figure}
2021-01-29 22:43:23 +00:00
\inputminted{go}{LanguageSamples/Samples/main.go}
2021-01-29 14:45:21 +00:00
\caption{A sample script written in Go to collect packets from a TUN interface and print them from multiple threads}
\label{fig:go-tun-sample}
\end{figure}