Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General"New ATL Object..." is lost! Pin
DanielP16-Jul-02 6:04
DanielP16-Jul-02 6:04 
GeneralPlease help with CTabCtrl Pin
dennisV16-Jul-02 5:38
dennisV16-Jul-02 5:38 
GeneralEasy question, but im stuck. :) Pin
Anonymous16-Jul-02 5:26
Anonymous16-Jul-02 5:26 
GeneralRe: Easy question Pin
Schnemar16-Jul-02 6:04
Schnemar16-Jul-02 6:04 
GeneralRe: Easy question Pin
Daniel Turini16-Jul-02 8:34
Daniel Turini16-Jul-02 8:34 
GeneralRe: Easy question, but im stuck. :) Pin
Gary Kirkham16-Jul-02 8:02
Gary Kirkham16-Jul-02 8:02 
GeneralRe: Easy question, but im stuck. :) Pin
Anonymous16-Jul-02 9:37
Anonymous16-Jul-02 9:37 
Generalbasic socket question Pin
Anonymous16-Jul-02 4:46
Anonymous16-Jul-02 4:46 
I am not an experienced sockets programmer, so I think I am missing something very basic. All of this is for UDP messages only.

I have a program that has two sockets set up. 1 for sending, and one for listening.

The sender is created by using the INADDR_ANY IP, and a specific port number (1594).

The listener is created by using the INADDR_ANY IP, and 0 as the port number.

This has been working for years with no problems.

I recently had to add the ability to send a broadcast UDP packet, but with a specific source address (the default would have picked the primary NIC source address, and this was causing problems).

Sending broadcasts is not the problem. This has been working for years also. It was the part where the source IP needs to be specified where problems came in.

I created another socket that uses a specific IP (10.3.2.1) as the IP, and 0 for the port number (letting a port get picked automatically). I send the message, then close the socket.

The message gets sent correctly, and a response does come back (using a sniffer to see this).

The problem is that my listener socket does not see the reply.

Since the only addition to the otherwise working application was the new (temporary) socket to send the broadcast, I'm wondering why this reply is not seen by the listener socket?

I'm hoping someone will be able to see a basic flaw in my thinking.

Thanks.


GeneralRe: basic socket question Pin
Mike Nordell16-Jul-02 5:15
Mike Nordell16-Jul-02 5:15 
GeneralRe: basic socket question Pin
Anonymous16-Jul-02 6:01
Anonymous16-Jul-02 6:01 
GeneralRe: basic socket question Pin
JohnnyG16-Jul-02 12:53
JohnnyG16-Jul-02 12:53 
GeneralRe: basic socket question Pin
Dave_17-Jul-02 3:14
Dave_17-Jul-02 3:14 
GeneralAfxGetResourceHandle Pin
Jose Vicente16-Jul-02 4:35
Jose Vicente16-Jul-02 4:35 
GeneralRe: AfxGetResourceHandle Pin
joblemar16-Jul-02 5:09
sussjoblemar16-Jul-02 5:09 
Generalmaking a toolbar button invisible Pin
ns16-Jul-02 4:21
ns16-Jul-02 4:21 
GeneralRe: making a toolbar button invisible Pin
Rage16-Jul-02 4:51
professionalRage16-Jul-02 4:51 
GeneralRe: making a toolbar button invisible Pin
Shog916-Jul-02 7:19
sitebuilderShog916-Jul-02 7:19 
GeneralRe: making a toolbar button invisible Pin
ns16-Jul-02 7:44
ns16-Jul-02 7:44 
GeneralRe: making a toolbar button invisible Pin
ns16-Jul-02 8:07
ns16-Jul-02 8:07 
GeneralRe: making a toolbar button invisible Pin
Shog916-Jul-02 8:49
sitebuilderShog916-Jul-02 8:49 
GeneralThanks, and also... Pin
ns16-Jul-02 9:07
ns16-Jul-02 9:07 
GeneralRe: Thanks, and also... Pin
Shog916-Jul-02 9:33
sitebuilderShog916-Jul-02 9:33 
Generalthank you Pin
ns16-Jul-02 9:25
ns16-Jul-02 9:25 
Generaldllimport vs dllexport Pin
Mike Zinni16-Jul-02 4:09
Mike Zinni16-Jul-02 4:09 
GeneralRe: dllimport vs dllexport Pin
Alexandru Savescu16-Jul-02 4:17
Alexandru Savescu16-Jul-02 4:17 

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.