Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralA very basic socket question Pin
Dave_17-Jul-02 3:21
Dave_17-Jul-02 3:21 
GeneralRe: A very basic socket question Pin
Joaquín M López Muñoz17-Jul-02 3:29
Joaquín M López Muñoz17-Jul-02 3:29 
GeneralRe: A very basic socket question Pin
includeh1017-Jul-02 3:39
includeh1017-Jul-02 3:39 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 3:51
Dave_17-Jul-02 3:51 
GeneralRe: A very basic socket question Pin
includeh1017-Jul-02 4:05
includeh1017-Jul-02 4:05 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 4:11
Dave_17-Jul-02 4:11 
GeneralRe: A very basic socket question Pin
Bubba214617-Jul-02 7:20
Bubba214617-Jul-02 7:20 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 7:37
Dave_17-Jul-02 7:37 
Thanks for taking the time to look at this for me.

The application is not actually a server. There are two threads, one for sending, and one for receiving. When the PC sends a message, it will send using a constant source port number of 1594. The hardware responds to that port number, but the PC also needs to listen for unsolicited messages from other port numbersd. This part of the software has been working for years without problems.

I don't understand how I could possibly be recieving messages if when I pass in IN_ADDRANY, and 0 for the port number, and that results in a port number 1679 (for example) after the bind, since most messages (if not all) are coming in on port 1594?

Thanks again, sorry for the lack of knowledge.
GeneralRe: A very basic socket question Pin
Bubba214617-Jul-02 7:58
Bubba214617-Jul-02 7:58 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 8:11
Dave_17-Jul-02 8:11 
GeneralRe: A very basic socket question Pin
Bubba214617-Jul-02 8:27
Bubba214617-Jul-02 8:27 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 8:29
Dave_17-Jul-02 8:29 
GeneralPassing a control id Pin
moobob17-Jul-02 3:18
moobob17-Jul-02 3:18 
GeneralRe: Passing a control id Pin
Joaquín M López Muñoz17-Jul-02 3:21
Joaquín M López Muñoz17-Jul-02 3:21 
GeneralRe: Passing a control id Pin
moobob17-Jul-02 3:31
moobob17-Jul-02 3:31 
Questiondbdao.h : what is the matter now? Pin
includeh1017-Jul-02 3:13
includeh1017-Jul-02 3:13 
AnswerRe: dbdao.h : what is the matter now? Pin
Michael P Butler17-Jul-02 3:36
Michael P Butler17-Jul-02 3:36 
GeneralRe: dbdao.h : what is the matter now? Pin
includeh1017-Jul-02 3:46
includeh1017-Jul-02 3:46 
GeneralMemory Managment Pin
c_sisbit17-Jul-02 3:12
c_sisbit17-Jul-02 3:12 
GeneralRe: Memory Managment Pin
Joaquín M López Muñoz17-Jul-02 3:18
Joaquín M López Muñoz17-Jul-02 3:18 
GeneralRe: Memory Managment Pin
includeh1017-Jul-02 3:21
includeh1017-Jul-02 3:21 
GeneralRe: Memory Managment Pin
c_sisbit17-Jul-02 3:41
c_sisbit17-Jul-02 3:41 
GeneralRe: Memory Managment Pin
Joaquín M López Muñoz17-Jul-02 3:46
Joaquín M López Muñoz17-Jul-02 3:46 
GeneralRe: Memory Managment Pin
c_sisbit17-Jul-02 3:47
c_sisbit17-Jul-02 3:47 
GeneralRe: Memory Managment Pin
Joaquín M López Muñoz17-Jul-02 3:50
Joaquín M López Muñoz17-Jul-02 3:50 

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.