I would like to receive UDP/IP ethernet packets.
I tried the following macro :
{
TServerSocket *ss = new TServerSocket(1025, kTRUE,1000,1000); // use port 1025
TSocket *s = ss->Accept(); // listen, and get a socket
Char_t buffer[80]; // buffer with some length to excercise
Int_t result;
result = s->RecvRaw(buffer,80);
cout << " (" << result << "): " << buffer << endl;
}
However, this code only reacts to TCP and does not react to UDP packets !
Is it possible to use UDP ? And how ?
A similar question was discussed in root.cern.ch/root/roottalk/roottalk99/0612.html
and I could not find a positive answer.
I am using ROOT Version 4.00/03 on SuSE 9.0 Linux 2.4.21-215-athlon