From 1643ecc1dda6d23c6b0a4d2225301ef35bd6326c Mon Sep 17 00:00:00 2001 From: Chord Date: Tue, 16 Feb 2016 00:31:33 -0500 Subject: [PATCH] Added document notes --- notes/.gitignore | 4 +++ notes/Makefile | 5 ++++ notes/login-server.tex | 56 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 notes/.gitignore create mode 100644 notes/Makefile create mode 100644 notes/login-server.tex diff --git a/notes/.gitignore b/notes/.gitignore new file mode 100644 index 000000000..65a4f31a6 --- /dev/null +++ b/notes/.gitignore @@ -0,0 +1,4 @@ +*.log +*.out +*.aux +login-server.pdf diff --git a/notes/Makefile b/notes/Makefile new file mode 100644 index 000000000..5957eb196 --- /dev/null +++ b/notes/Makefile @@ -0,0 +1,5 @@ +all: + pdflatex login-server + pdflatex login-server +clean: + -rm -f *.aux *.log *.out login-server.pdf diff --git a/notes/login-server.tex b/notes/login-server.tex new file mode 100644 index 000000000..184282eae --- /dev/null +++ b/notes/login-server.tex @@ -0,0 +1,56 @@ +\documentclass{article} +\usepackage[T1]{fontenc} +\usepackage{lmodern} + +\usepackage{graphicx} +\usepackage[margin=1in]{geometry} +\usepackage{float} +\usepackage{xcolor} +\usepackage{hyperref} +\usepackage{float} +\usepackage{amsmath} + +\begin{document} + +\title{PSForever Server Notes} + +\author{Chord $<$chord@tuta.io$>$} + +\maketitle + +%\section*{Security Model} +% +%\subsection*{Trust Model} +% +%\subsection*{Threat Model} +% +%\subsection*{Security Objects} +% +%\subsubsection*{Client Objects} + +\section*{FAQ} +\paragraph*{A new packet comes in, who is it for?} +A UDP packet has a source address and port. This pair will allow the +server to identify which session the packet is for. If no sessions are found +matching this pair, then a new session is created. Essentially packets have to +be routed to session objects which know what to do with it, given the state of the session. + +\paragraph*{What is a session and what type of information does a session store?} +A session is some state used to represent a unique user's connection. This +state can be the current connection's status, the last time a message was +received for this session, and much more. + +\paragraph*{} + +%\section*{Code Structure} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Begin References +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{thebibliography}{99} + +\end{thebibliography} + +\end{document} + +\end{document}