Web Development
timecast.txt
Associated article: Internet Multicasting
Tags: Web Development
Published source code accompanying the article by Bob Quinn in which he shows how multicasting can let you deliver content from a single sender to multiple receivers. Bob uses the multicast-enabled WinSock API to present TimeCast, a one-to-many application that multicasts the time of day to multiple clients. Also see TIMECAST.ZIP.
Internet Multicasting
by Bob Quinn
Example 1:
nRet = WSAStartup(0x0202, &stWSAData);
if (nRet) {
printf ("WSAStartup failed: %drn", nRet);
exit (1);
}
Example 2:
hSocket = socket(AF_INET, SOCK_DGRAM, 0);
if (hSocket == INVALID_SOCKET) {
printf ("socket() failed, Err: %dn", WSAGetLastError());
...


