mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@1 951219d9-93cf-4727-9268-0efd64621fa3
32 lines
626 B
C++
32 lines
626 B
C++
|
|
//version 1.0, base development ij 19/01/09
|
|
|
|
#include <iostream>
|
|
#include "MySocketTCP.h"
|
|
|
|
using namespace std;
|
|
|
|
int main(){
|
|
|
|
char data[50000];
|
|
int length=50000;
|
|
|
|
unsigned short int portnum = 1952;
|
|
MySocketTCP* sock = new MySocketTCP(portnum);
|
|
|
|
cout<<"\tReceived :"<<sock->ReceiveDataAndKeepConnection(data,23000)<<endl;
|
|
cout<<"\tReceived :"<<sock->ReceiveData(data,32200)<<endl;
|
|
cout<<"\tReceived :"<<sock->ReceiveData(data,33300)<<endl;
|
|
|
|
|
|
|
|
cout<<"\tReceived :"<<sock->ReceiveData(data,30000)<<endl;
|
|
|
|
|
|
cout<<"\tReceived :"<<sock->ReceiveData(data,3222)<<endl;
|
|
|
|
delete sock;
|
|
|
|
return 0;
|
|
}
|