home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / winsock / bcast / readme.txt < prev   
Text File  |  1996-07-26  |  1KB  |  37 lines

  1.     This module illustrates the Win32 Winsock and Mailslot APIs to do a generic
  2.     broadcast over IPX, UDP and Mailslot protocols.
  3.  
  4.     This example implements a client and a server. The example has a number
  5.     command line options. For example,
  6.  
  7.     -s To run the example as a server(default role).
  8.     
  9.     -c To run the example as a client.
  10.    
  11.     -p <i or m or u> To specify the protocol to be used.
  12.      i - IPX.
  13.      m - Mailslots.
  14.      u - UDP(default protocol).
  15.     
  16.     -e <Endpoint> To specify an end point of your choice. This is a mandatory
  17.     parameter. Servers create this endpoint and read broadcast messages. An 
  18.     endpoint in case Mailslot protocol is a Mailslot name.(default is 5005). 
  19.     
  20.     -d <DomainName> - To specify a domain name or a workgroup name. This is 
  21.     useful for Mailslot clients, only.
  22.  
  23.     To run the application as a server, the following command lines can be 
  24.     specified:
  25.     
  26.     bcast -s -e 8000 -p u
  27.     bcast -s -e 8000 -p i
  28.     bcast -s -e MAILSLOT1 -p m
  29.  
  30.     To run the application as a client, the following command lines can be
  31.     specified:
  32.     
  33.     bcast -c -e 8000 -p u
  34.     bcast -c -e 8000 -p i
  35.     bcast -c -e MAILSLOT1 -p m -d DOMAIN1
  36.     bcast -c -e MAILSLOT1 -p m -d WORKGROUP1
  37.