29 lines
1.0 KiB
TeX
29 lines
1.0 KiB
TeX
%!TEX root = ../thesis.tex
|
|
% ********************** Thesis Appendix A - Language Samples *************************
|
|
|
|
\chapter{Language Samples}
|
|
\label{appendix:language-samples}
|
|
|
|
\begin{figure}
|
|
\inputminted[firstline=1,lastline=48]{cpp}{LanguageSamples/Samples/main.cpp}
|
|
\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
|
|
\inputminted[firstline=49]{cpp}{LanguageSamples/Samples/main.cpp}
|
|
\end{figure}
|
|
|
|
\begin{figure}
|
|
\inputminted{rust}{LanguageSamples/Samples/main.rs}
|
|
\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}
|
|
\inputminted{go}{LanguageSamples/Samples/main.go}
|
|
\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}
|