to the server upon connection, so MSG4 commands run properly.
$Log$
+ Revision 1.17 2003/11/14 17:15:19 ajc
+ * Identify our message format preference (HTML followed by plain text)
+ to the server upon connection, so MSG4 commands run properly.
+
Revision 1.16 2003/11/14 17:09:04 ajc
* Added a basic read loop ... currently only fetches message numbers
Revision 1.1 2003/10/31 03:47:13 ajc
* Initial CVS import
+
//
-// Identify this client, and the hostname where the user is, to Citadel.
+// Identify ourselves to the Citadel server (do this once after connection)
//
function ctdl_iden() {
global $clientsocket;
+ // Identify client and hostname
serv_puts("IDEN 0|8|001|PHP web client|" . $_SERVER['REMOTE_ADDR'] );
$buf = serv_gets();
+
+ // Also express our message format preferences
+ serv_puts("MSGP text/html|text/plain");
+ $buf = serv_gets();
}