QuickDiff

Created Diff never expires
7 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
33 lines
6 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
32 lines
/*
/*

publish with BSD Licence.
Thomas Daley
Copyright (c) Terry Lao
11/13/2016
WinCat.h

*/
*/
#ifndef WINCAT_H
#ifndef WINCAT_H
#define WINCAT_H
#define WINCAT_H


#include <windows.h>
#include <windows.h>
#include <stdio.h>
#include <stdio.h>
#include "AsyncStreamReader.h"
#include "AsyncStreamReader.h"
#include "pipes.h"
#include "pipes.h"


class WinCat {
class WinCat {
private:
private:
AsyncStreamReader *input = NULL;
AsyncStreamReader *input = NULL;
FILE *output;
FILE *output;
struct PipeHandles pipes;
struct PipeHandles pipes;
int launched;
int launched,udpsocket;
char *filename;
char *filename;

char *myrestrictip;
int Launch();
int Launch();


public:
public:
WinCat(char *filename);
WinCat(char *filename);
~WinCat();
~WinCat();
int Process(SOCKET ClientSocket);
int Process(SOCKET ClientSocket);
int SyncProcess(SOCKET ClientSocket);
void setUdp(char * restrictip);


};
};


#endif /* WINCAT_H */
#endif /* WINCAT_H */