I'm new to thei, so please, try to understand.
I'm trying to do something here that requires server discovery. As far as I
know, you are suppose to seebd your query to address 255.255.255.255, ten
everybody listen to but only the appropiate server responds.
I have no clue on how to implement this with indy. Should I use the
TCPClient and try to connect to 255.255.255.255? I don't think it's going to
work.
Can anybody has worked on something like this before? I was searching the
borland newsgroups but didn't find anything. Any code fragment or sample
will be gratly appreciated.
regards,
Loius
Simplified version:
Let's say SockA is sending the stirng 'SEARCH' as a broadcast to the Port
5000.
On the other side, where your server is running there has to be a Socker
SockB that's listening Port 5000. If something arrives, SockB checks if the
Data is 'SEARCH'. If so,
SockC that is as well on the server side will send 'RESULT' to the address
where the 'SEARCH' came from, using Port 5001. On the side that originally
sent the 'SEARCH', there is a socket SockD that's listening to Port 5001.
This Socket will receive the 'RESULT' string and therefore know that a
server exists at the address where the 'RESULT' came from.
I don't know how to do it in Indy, since I don't use it. I'm quite sure that
ICS offers UDP sockets...
Andy
That was it. It's working right now!!
Thanks a lot.
Luis
I did it and it worked!
regards,
Luis