Board index » cppbuilder » TUdpSocket samples?
choykw
![]() CBuilder Developer |
TUdpSocket samples?2006-03-01 01:40:49 PM cppbuilder80 Hi, I'm totally lost in trying to get a UDP connection to work usinf TUdpSocket. I admit that I know totally nothing about networking and such, but I jist simply don't understand why this damn thing is so hard to get to work. I and pleaing anyone to show me an example of how to get 2 PCs to communicate using TUdpSocket. It is suppost to work in a server broadcasting to all connected client environment, but a 1-to-1 example should be enough to get me started. I need example of sending text (TUdpSocket->Sendln()) and/or sending binary data (say, a 128 byte binary data packets) if the two procedure is significantly different. So far, in my venture, I never manage to recieve any thing from the connection. That damn OnRecieve() event just never freaking triggered anyway. Why it's so difficult to get this freak event to fire? Pardon my language, but I'm really pissed by the lack of documentation about this UDP thing. People keep it like top secrets, never willing to talk about it in any forum/newsgroup/website. The document in C++Builder is even worst, with most of the explaination derived from other objects (TBaseSocket) and most of the time the damn lazy documentor (or whatever it is called) never bother to explain what the arguments are and how they work. Thanks in advance. Sigh......(frustrated enough to start looking elsewhere for a better product) |