1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
<html>
<head>
<title>~/src/firstworks/rudiments-0.31/include/rudiments/client.h.html</title>
<meta name="Generator" content="Vim/7.0">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>
<font color="#0000ff">// Copyright (c) 2002 David Muse</font>
<font color="#0000ff">// See the COPYING file for more information.</font>
<font color="#a020f0">#ifndef RUDIMENTS_CLIENT_H</font>
<font color="#a020f0">#define RUDIMENTS_CLIENT_H</font>
<font color="#a020f0">#include </font><font color="#ff00ff"><rudiments/private/clientincludes.h></font>
<font color="#0000ff">// The client class provides a base class for classes that implement the client</font>
<font color="#0000ff">// side of a client-server communication model.</font>
<font color="#a020f0">#ifdef RUDIMENTS_NAMESPACE</font>
<font color="#2e8b57"><b>namespace</b></font> rudiments {
<font color="#a020f0">#endif</font>
<font color="#2e8b57"><b>class</b></font> clientprivate;
<font color="#2e8b57"><b>class</b></font> client : <font color="#a52a2a"><b>public</b></font> filedescriptor {
<font color="#a52a2a"><b>public</b></font>:
client();
client(<font color="#2e8b57"><b>const</b></font> client &c);
client &<font color="#a52a2a"><b>operator</b></font>=(<font color="#2e8b57"><b>const</b></font> client &c);
<font color="#2e8b57"><b>virtual</b></font> ~client();
<font color="#2e8b57"><b>virtual</b></font> <font color="#2e8b57"><b>void</b></font> initialize(constnamevaluepairs *cd)=<font color="#ff00ff">0</font>;
<font color="#2e8b57"><b>virtual</b></font> <font color="#2e8b57"><b>int</b></font> connect()=<font color="#ff00ff">0</font>;
<font color="#0000ff">// This method return an int instead of a bool</font>
<font color="#0000ff">// because we want child classes that have non</font>
<font color="#0000ff">// atomic connection procedures (such as a</font>
<font color="#0000ff">// modem) to be able to implement return codes</font>
<font color="#0000ff">// other than success or failure (such as</font>
<font color="#0000ff">// abort).</font>
<font color="#2e8b57"><b>virtual</b></font> <font color="#2e8b57"><b>const</b></font> <font color="#2e8b57"><b>char</b></font> *getVerboseConnectError();
<font color="#2e8b57"><b>virtual</b></font> <font color="#2e8b57"><b>void</b></font> setVerboseConnectError(
<font color="#2e8b57"><b>const</b></font> <font color="#2e8b57"><b>char</b></font> *error);
<font color="#a020f0"> #include </font><font color="#ff00ff"><rudiments/private/client.h></font>
};
<font color="#a020f0">#ifdef RUDIMENTS_NAMESPACE</font>
}
<font color="#a020f0">#endif</font>
<font color="#a020f0">#endif</font>
</pre>
</body>
</html>
|