2 Copyright (C) 2005 Georgia Public Library Service
3 Bill Erickson <billserickson@gmail.com>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
23 struct osrfChatNodeStruct;
24 typedef struct osrfChatNodeStruct osrfChatNode;
26 struct osrfChatServerStruct;
27 typedef struct osrfChatServerStruct osrfChatServer;
29 /* @param s2sSecret The Server to server secret. OK to leave NULL if no
30 server to server communication is expected
32 osrfChatServer* osrfNewChatServer( const char* domain, const char* s2sSecret, int s2sport );
34 int osrfChatServerConnect( osrfChatServer* cs, int port, int s2sport, char* listenAddr );
36 int osrfChatServerWait( osrfChatServer* server );
37 void osrfChatServerFree( osrfChatServer* cs );