Click here to Skip to main content
15,913,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: webbrowser contextmenu Pin
Chris Richardson30-Apr-03 22:42
Chris Richardson30-Apr-03 22:42 
GeneralSimple cpp question Pin
ninjakiwi29-Apr-03 17:44
ninjakiwi29-Apr-03 17:44 
GeneralRe: Simple cpp question Pin
Toni7829-Apr-03 20:13
Toni7829-Apr-03 20:13 
GeneralRe: Simple cpp question Pin
David Crow30-Apr-03 3:15
David Crow30-Apr-03 3:15 
GeneralSerialization problem Pin
fermar8429-Apr-03 16:50
fermar8429-Apr-03 16:50 
GeneralRe: Serialization problem Pin
Neville Franks29-Apr-03 21:09
Neville Franks29-Apr-03 21:09 
QuestionHow to Broadcast? Pin
Aidman29-Apr-03 13:20
Aidman29-Apr-03 13:20 
AnswerRe: How to Broadcast? Pin
JohnnyG29-Apr-03 15:13
JohnnyG29-Apr-03 15:13 
You need to read up on Winsock. There are some articles here. As far as discovering other servers for a game environment etc. It depends on how each server is set up. For example, if the server is always listening for a connection on a particular port, it may be as simple as broadcasting a message to all IPs on that port and see which ones respond. Of course, there should already be an established protocol on how a game running on a client computer would do this.

But, sending a broadcast message is a connectionless datagram protocol such as UDP. Usually, you would send the message to IP broadcast address of 255.255.255.255 or your IP's subnet as xxx.xxx.xxx.255. If you read up on how to send a UDP network message, its simply a matter of putting the broadcast address as your destination address (the PC you're sending the message to).
GeneralRe: How to Broadcast? Pin
Aidman29-Apr-03 22:41
Aidman29-Apr-03 22:41 
GeneralRe: How to Broadcast? Pin
JohnnyG30-Apr-03 3:11
JohnnyG30-Apr-03 3:11 
GeneralRe: How to Broadcast? Pin
Aidman30-Apr-03 9:10
Aidman30-Apr-03 9:10 
GeneralRe: How to Broadcast? Pin
Aidman30-Apr-03 9:45
Aidman30-Apr-03 9:45 
GeneralRe: How to Broadcast? Pin
JohnnyG30-Apr-03 11:11
JohnnyG30-Apr-03 11:11 
GeneralHow to make a nonblocking receive socket? Pin
Aidman30-Apr-03 11:15
Aidman30-Apr-03 11:15 
GeneralRe: How to Broadcast? Pin
JohnnyG30-Apr-03 11:21
JohnnyG30-Apr-03 11:21 
QuestionChanging the Image Size? Pin
Pesto29-Apr-03 13:09
Pesto29-Apr-03 13:09 
AnswerRe: Changing the Image Size? Pin
Chris Losinger29-Apr-03 13:48
professionalChris Losinger29-Apr-03 13:48 
GeneralRe: Changing the Image Size? Pin
Pesto29-Apr-03 22:36
Pesto29-Apr-03 22:36 
AnswerRe: Changing the Image Size? Pin
RaajaOfSelf29-Apr-03 17:40
RaajaOfSelf29-Apr-03 17:40 
GeneralTemplate again Pin
grscot29-Apr-03 12:23
grscot29-Apr-03 12:23 
GeneralRe: Template again - Formatting Pin
Neville Franks29-Apr-03 12:39
Neville Franks29-Apr-03 12:39 
GeneralRe: Template again - Formatting Pin
peterchen29-Apr-03 20:54
peterchen29-Apr-03 20:54 
GeneralRe: Template again - Formatting Pin
Neville Franks29-Apr-03 21:00
Neville Franks29-Apr-03 21:00 
GeneralGetCurrentImage Pin
Emiliano29-Apr-03 11:50
Emiliano29-Apr-03 11:50 
GeneralWant to create a color palette like in the Control Panel Pin
netstv29-Apr-03 11:49
netstv29-Apr-03 11:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.