- Adapted indenation to new agreed upon system

- Added support for second generation scriptcontext based counter
This commit is contained in:
koennecke
2009-02-13 09:00:03 +00:00
parent a3dcad2bfa
commit 91d4af0541
405 changed files with 88101 additions and 88173 deletions

View File

@@ -43,41 +43,37 @@
#include "network.h"
#include "interrupt.h"
static mkChannel *pChannel = NULL;
static mkChannel *pChannel = NULL;
/*---------------------------------------------------------------------------*/
int ClientSetupInterrupt(char *host, int iPort)
{
pChannel = UDPConnect(host,iPort);
if(pChannel == NULL)
{
return 0;
}
else
{
return 1;
}
}
/*---------------------------------------------------------------------------*/
void ClientStopInterrupt(void)
{
if(pChannel)
{
NETClosePort(pChannel);
free(pChannel);
}
int ClientSetupInterrupt(char *host, int iPort)
{
pChannel = UDPConnect(host, iPort);
if (pChannel == NULL) {
return 0;
} else {
return 1;
}
}
/*---------------------------------------------------------------------------*/
void SendInterrupt(int iCode)
{
char pBueffel[132];
if( (iCode <0) )
{
return;
}
sprintf(pBueffel,"SICSINT %d",iCode);
UDPWrite(pChannel,pBueffel,strlen(pBueffel));
void ClientStopInterrupt(void)
{
if (pChannel) {
NETClosePort(pChannel);
free(pChannel);
}
}
/*---------------------------------------------------------------------------*/
void SendInterrupt(int iCode)
{
char pBueffel[132];
if ((iCode < 0)) {
return;
}
sprintf(pBueffel, "SICSINT %d", iCode);
UDPWrite(pChannel, pBueffel, strlen(pBueffel));
}