lockstep.h

Go to the documentation of this file.
00001 /* ES40 emulator.
00002  * Copyright (C) 2007 by Camiel Vanderhoeven
00003  *
00004  * Website: www.camicom.com
00005  * E-mail : camiel@camicom.com
00006  * 
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  * 
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00020  * 
00021  * Although this is not required, the author would appreciate being notified of, 
00022  * and receiving any modifications you may make to the source code that might serve
00023  * the general public.
00024  */
00025 
00038 #if !defined(INCLUDED_LOCKSTEP_H)
00039 #define INCLUDED_LOCKSTEP_H
00040 
00041 #include "telnet.h"
00042 
00043 #if defined(IDB) && (defined(LS_MASTER) || defined(LS_SLAVE))
00044 extern int  ls_Socket;
00045 
00046 #if defined(LS_MASTER)
00047 extern char ls_IP[30];
00048 #else
00049 extern int  ls_listenSocket;
00050 #endif
00051 void        lockstep_init();
00052 void        lockstep_sync_m2s(char* s);
00053 void        lockstep_sync_s2m(char* s);
00054 void        lockstep_compare(char* s);
00055 void        lockstep_send(char* s);
00056 void        lockstep_receive(char* s, int sz);
00057 #endif // defined(IDB) && (defined(LS_MASTER) || defined(LS_SLAVE))
00058 #endif // !defined(INCLUDED_LOCKSTEP_H)

SourceForge.net Logo
Project space on SourceForge.net