Synced up to Matts code.
This commit is contained in:
1 parent
d8eb3d7bb2
commit
b63b4785cf
85 files changed
+458
-567
No files matched your search
@@ -38,7 +38,7 @@ int \mbox{\hyperlink{classcore_1_1Socket_a06ba54744530439d4131e6aba4623d08}{get\
|
||||
\begin{DoxyCompactList}\small\item\em Get the descriptor for the socket. \end{DoxyCompactList}\item
|
||||
bool \mbox{\hyperlink{classcore_1_1Socket_a1a045e15fb5851d666a21be05ac4c5d7}{event\+Received}} (struct epoll\+\_\+event event, long long event\+Id)
|
||||
\begin{DoxyCompactList}\small\item\em Parse epoll event and call specified callbacks. \end{DoxyCompactList}\item
|
||||
int \mbox{\hyperlink{classcore_1_1Socket_a4ed587f31d080115c00828f90b1e28bb}{write}} (std\+::string data, \mbox{\hyperlink{classcore_1_1Socket}{Socket}} $\ast$sender)
|
||||
int \mbox{\hyperlink{classcore_1_1Socket_a542ef2d6be9997aa98cfae3e72c66b4a}{write}} (std\+::string data, \mbox{\hyperlink{classcore_1_1Socket}{Socket}} $\ast$sender=NULL)
|
||||
\item
|
||||
\mbox{\Hypertarget{classcore_1_1Socket_a4855594af113428eacdaa7448d661121}\label{classcore_1_1Socket_a4855594af113428eacdaa7448d661121}}
|
||||
void {\bfseries write} (char $\ast$buffer, int length)
|
||||
@@ -215,11 +215,11 @@ set\+Descriptor establishes the file descriptor for the socket and registers the
|
||||
\doxysubsubsection{\texorpdfstring{shutdown()}{shutdown()}}
|
||||
{\footnotesize\ttfamily void core\+::\+Socket\+::shutdown (\begin{DoxyParamCaption}\item[{std\+::string}]{text = {\ttfamily \char`\"{}unknown\char`\"{}} }\end{DoxyParamCaption})}
|
||||
|
||||
Use the \mbox{\hyperlink{classcore_1_1Socket_af2d1b6de7a64a9d446b0305b6ec47b31}{shutdown()}} method to terminate the socket connection and remove resources. This method is provided to ensure that all destructors are called for all inherited objects with a virtual destructor. \mbox{\Hypertarget{classcore_1_1Socket_a4ed587f31d080115c00828f90b1e28bb}\label{classcore_1_1Socket_a4ed587f31d080115c00828f90b1e28bb}}
|
||||
Use the \mbox{\hyperlink{classcore_1_1Socket_af2d1b6de7a64a9d446b0305b6ec47b31}{shutdown()}} method to terminate the socket connection and remove resources. This method is provided to ensure that all destructors are called for all inherited objects with a virtual destructor. \mbox{\Hypertarget{classcore_1_1Socket_a542ef2d6be9997aa98cfae3e72c66b4a}\label{classcore_1_1Socket_a542ef2d6be9997aa98cfae3e72c66b4a}}
|
||||
\index{core::Socket@{core::Socket}!write@{write}}
|
||||
\index{write@{write}!core::Socket@{core::Socket}}
|
||||
\doxysubsubsection{\texorpdfstring{write()}{write()}}
|
||||
{\footnotesize\ttfamily int core\+::\+Socket\+::write (\begin{DoxyParamCaption}\item[{std\+::string}]{data, }\item[{\mbox{\hyperlink{classcore_1_1Socket}{Socket}} $\ast$}]{sender }\end{DoxyParamCaption})}
|
||||
{\footnotesize\ttfamily int core\+::\+Socket\+::write (\begin{DoxyParamCaption}\item[{std\+::string}]{data, }\item[{\mbox{\hyperlink{classcore_1_1Socket}{Socket}} $\ast$}]{sender = {\ttfamily NULL} }\end{DoxyParamCaption})}
|
||||
|
||||
Write data to the socket.
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ This method is used to implement the functionality of the requested command. Thi
|
||||
\begin{DoxyReturn}{Returns}
|
||||
Returns 0 if execution of the command was successful. Otherwise returns a non-\/zero value indicating an error condition.
|
||||
\end{DoxyReturn}
|
||||
with another player//
|
||||
|
||||
|
||||
Reimplemented from \mbox{\hyperlink{classcore_1_1Command_a95176f2532c38ee14e3fee40ee28b1bd}{core\+::\+Command}}.
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ virtual \mbox{\hyperlink{classcore_1_1TCPServer_a7ccdc057c9eee8504fce796301f8208
|
||||
\mbox{\Hypertarget{classcore_1_1TCPServer_a554ec6e67d368e7bb545d95635c0a0df}\label{classcore_1_1TCPServer_a554ec6e67d368e7bb545d95635c0a0df}}
|
||||
virtual void {\bfseries session\+Error\+Handler} (std\+::string error\+String, std\+::stringstream \&out)
|
||||
\item
|
||||
\mbox{\Hypertarget{classcore_1_1TCPServer_a1cdf4a44cfefa6945bc5b30cd02c93e2}\label{classcore_1_1TCPServer_a1cdf4a44cfefa6945bc5b30cd02c93e2}}
|
||||
\mbox{\Hypertarget{classcore_1_1TCPServer_a308df2a080bb331e17b95431e4ab9412}\label{classcore_1_1TCPServer_a308df2a080bb331e17b95431e4ab9412}}
|
||||
virtual bool {\bfseries compare\+Alias} (void $\ast$alias, void $\ast$compare)
|
||||
\item
|
||||
virtual \mbox{\hyperlink{classcore_1_1TCPSession}{TCPSession}} $\ast$ \mbox{\hyperlink{classcore_1_1TCPServer_a841f02799ad8529aad7cea132f4de8a9}{get\+Socket\+Accept}} (\mbox{\hyperlink{classcore_1_1EPoll}{EPoll}} \&epoll)
|
||||
|
||||
@@ -33,6 +33,9 @@ virtual void \mbox{\hyperlink{classcore_1_1TCPSession_a50037cbfc515650e04054e548
|
||||
void \mbox{\hyperlink{classcore_1_1TCPSession_a2b09eeafef5e44009a77d9da43e3b889}{send}} ()
|
||||
\item
|
||||
void \mbox{\hyperlink{classcore_1_1TCPSession_a34936745e8d7669d5400e78d353a56d3}{terminate}} ()
|
||||
\item
|
||||
\mbox{\Hypertarget{classcore_1_1TCPSession_a31d95c498870e67c218d952ded5e9894}\label{classcore_1_1TCPSession_a31d95c498870e67c218d952ded5e9894}}
|
||||
virtual bool {\bfseries compare\+Alias} (void $\ast$\mbox{\hyperlink{classcore_1_1TCPSession_a014ae6b1465bf36606763703aa8a930d}{alias}})
|
||||
\end{DoxyCompactItemize}
|
||||
\doxysubsection*{Public Attributes}
|
||||
\begin{DoxyCompactItemize}
|
||||
@@ -45,11 +48,9 @@ void \mbox{\hyperlink{classcore_1_1TCPSession_a34936745e8d7669d5400e78d353a56d3}
|
||||
\item
|
||||
std\+::stringstream \mbox{\hyperlink{classcore_1_1TCPSession_abb302bbb3d7e7bc75490c736364f0d4d}{out}}
|
||||
\item
|
||||
\mbox{\Hypertarget{classcore_1_1TCPSession_a2ccd4968f5c53d1c16a57e04081db692}\label{classcore_1_1TCPSession_a2ccd4968f5c53d1c16a57e04081db692}}
|
||||
char {\bfseries uuid} \mbox{[}37\mbox{]}
|
||||
char \mbox{\hyperlink{classcore_1_1TCPSession_a2ccd4968f5c53d1c16a57e04081db692}{uuid}} \mbox{[}37\mbox{]}
|
||||
\item
|
||||
\mbox{\Hypertarget{classcore_1_1TCPSession_a014ae6b1465bf36606763703aa8a930d}\label{classcore_1_1TCPSession_a014ae6b1465bf36606763703aa8a930d}}
|
||||
void $\ast$ {\bfseries alias}
|
||||
void $\ast$ \mbox{\hyperlink{classcore_1_1TCPSession_a014ae6b1465bf36606763703aa8a930d}{alias}}
|
||||
\end{DoxyCompactItemize}
|
||||
\doxysubsection*{Protected Member Functions}
|
||||
\begin{DoxyCompactItemize}
|
||||
@@ -153,13 +154,25 @@ Use set\+Block\+Size to set the amount of data that should be read at once from
|
||||
Use this method to terminate this \mbox{\hyperlink{classcore_1_1TCPSession}{TCPSession}}.
|
||||
|
||||
\doxysubsection{Member Data Documentation}
|
||||
\mbox{\Hypertarget{classcore_1_1TCPSession_abb302bbb3d7e7bc75490c736364f0d4d}\label{classcore_1_1TCPSession_abb302bbb3d7e7bc75490c736364f0d4d}}
|
||||
\mbox{\Hypertarget{classcore_1_1TCPSession_a014ae6b1465bf36606763703aa8a930d}\label{classcore_1_1TCPSession_a014ae6b1465bf36606763703aa8a930d}}
|
||||
\index{core::TCPSession@{core::TCPSession}!alias@{alias}}
|
||||
\index{alias@{alias}!core::TCPSession@{core::TCPSession}}
|
||||
\doxysubsubsection{\texorpdfstring{alias}{alias}}
|
||||
{\footnotesize\ttfamily void$\ast$ core\+::\+TCPSession\+::alias}
|
||||
|
||||
alias is a void pointer that can be set to point to any object that identifies this session uniquely. Using this approach, inheriting objects can determine how it knows the contacts that this server manages. \mbox{\Hypertarget{classcore_1_1TCPSession_abb302bbb3d7e7bc75490c736364f0d4d}\label{classcore_1_1TCPSession_abb302bbb3d7e7bc75490c736364f0d4d}}
|
||||
\index{core::TCPSession@{core::TCPSession}!out@{out}}
|
||||
\index{out@{out}!core::TCPSession@{core::TCPSession}}
|
||||
\doxysubsubsection{\texorpdfstring{out}{out}}
|
||||
{\footnotesize\ttfamily std\+::stringstream core\+::\+TCPSession\+::out}
|
||||
|
||||
Use out to send data to the session socket or other session sockets.
|
||||
Use out to send data to the session socket or other session sockets. \mbox{\Hypertarget{classcore_1_1TCPSession_a2ccd4968f5c53d1c16a57e04081db692}\label{classcore_1_1TCPSession_a2ccd4968f5c53d1c16a57e04081db692}}
|
||||
\index{core::TCPSession@{core::TCPSession}!uuid@{uuid}}
|
||||
\index{uuid@{uuid}!core::TCPSession@{core::TCPSession}}
|
||||
\doxysubsubsection{\texorpdfstring{uuid}{uuid}}
|
||||
{\footnotesize\ttfamily char core\+::\+TCPSession\+::uuid\mbox{[}37\mbox{]}}
|
||||
|
||||
uuid is generated automatically when the session object is instantiated. This value can be used to uniquely identify a session and is the default value pointed to by the alias pointer.
|
||||
|
||||
The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
|
||||
\item
|
||||
|
||||
Reference in new issue
Block a user