I am trying to set up a binding on an Indy 10 TIdUDPServer component with Embarcadero XE 10.1 Berlin C++ builder
I As soon as the Bind() call is made, I get an error message as follows:
"Exception class EIdNotAsocket with message 'socket Error #10038' Socket Operation on non-socket."
How can I set up the binding ?
the following is my code:
udpserver = new TIdUDPServer(NULL);
udpserver->OnUDPRead = IdUDPServer1UDPRead;
h = udpserver->Bindings->Add();
h->Port = 791;
h->IP = "127.0.0.1";