I am new to LaTeX and am using a template provided by a friend:
\subsection{P2P library}
The library is implemented in C-Sharp and provides two basic facilities - maintaining a member list at every instance and the support for receving and multicasting UDP data.
The public methods it has are
\begin{lstlisting}
void setPorts(int recvHere \newline, int sendFrom
Why doesn't ,int sendFrom
move to a new line in the PDF output? In fact it just shows up in the PDF output.
listings
is a verbatim environment so that the usual macros are not executed. You can specify a character to escape you to latex and you will need to insert that character around\newline
. – Peter Grill Mar 22 '12 at 19:30\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Mar 22 '12 at 19:36