Click here to Skip to main content
15,889,992 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNo Filename and Linenumber in VS2003 CRT Debugmessage Pin
Mattens20-Mar-06 23:32
Mattens20-Mar-06 23:32 
AnswerRe: No Filename and Linenumber in VS2003 CRT Debugmessage Pin
toxcct20-Mar-06 23:37
toxcct20-Mar-06 23:37 
AnswerRe: No Filename and Linenumber in VS2003 CRT Debugmessage Pin
kakan21-Mar-06 2:40
professionalkakan21-Mar-06 2:40 
GeneralRe: No Filename and Linenumber in VS2003 CRT Debugmessage Pin
Mattens21-Mar-06 3:11
Mattens21-Mar-06 3:11 
GeneralRe: No Filename and Linenumber in VS2003 CRT Debugmessage Pin
kakan21-Mar-06 3:35
professionalkakan21-Mar-06 3:35 
QuestionNeed Help With SendMessage() Pin
SteelCrow20-Mar-06 23:20
SteelCrow20-Mar-06 23:20 
AnswerRe: Need Help With SendMessage() Pin
Hamid_RT21-Mar-06 0:00
Hamid_RT21-Mar-06 0:00 
QuestionIpv6 socket bind doubt? Pin
veeran20-Mar-06 22:15
veeran20-Mar-06 22:15 
want a neutral code that binds my port to listen socket.



The neutral code should work like (INADDR_ANY(IPv4) or INADDR_ANY6)



In INADDR_ANY(IPv4), the code for listening to multiple network interface is :



sin.sin_addr.s_addr = htonl(INADDR_ANY);



I want the code to work in the following situation:



I have more than one network interface and address. When a request to connect arrives for a particular port, will it be served with code given bellow?







if (IN_iRequestType EQUALS IPV4)

{

stHints.ai_family = AF_INET;

}

else

{

stHints.ai_family = AF_INET6;

}



stHints.ai_socktype = SOCK_STREAM;



stHints.ai_flags = AI_NUMERICHOST | AI_PASSIVE;


getaddrinfo(NULL, szPort, &stHints, &pAI);


bind(hsocket, (LPSOCKADDR)pAI->ai_addr, pAI->ai_addrlen);








I would also like to have documents or any other net resources which supports the neutral code (code which supports both IPv4 and Ipv6)





Please help me to find out a solution for my issue.


QuestionDLL Searching path Pin
Vaibhav Sanghavi20-Mar-06 22:03
Vaibhav Sanghavi20-Mar-06 22:03 
AnswerRe: DLL Searching path Pin
Waldermort21-Mar-06 2:42
Waldermort21-Mar-06 2:42 
GeneralRe: DLL Searching path Pin
Vaibhav Sanghavi21-Mar-06 3:06
Vaibhav Sanghavi21-Mar-06 3:06 
Questiongetting information about hardware from WMI Pin
ss200620-Mar-06 21:57
ss200620-Mar-06 21:57 
AnswerRe: getting information about hardware from WMI Pin
Hamid_RT20-Mar-06 23:58
Hamid_RT20-Mar-06 23:58 
QuestionDisable Message in Sql query Pin
madhu_v20-Mar-06 21:53
madhu_v20-Mar-06 21:53 
AnswerRe: Disable Message in Sql query Pin
Eytukan22-Mar-06 1:01
Eytukan22-Mar-06 1:01 
AnswerRe: Disable Message in Sql query Pin
Eytukan26-Mar-06 20:18
Eytukan26-Mar-06 20:18 
QuestionDisable Message in Sql query Pin
madhu_v20-Mar-06 21:52
madhu_v20-Mar-06 21:52 
QuestionProblem with CEdit Pin
Simon Käppeli20-Mar-06 21:42
Simon Käppeli20-Mar-06 21:42 
AnswerRe: Problem with CEdit Pin
Stephen Hewitt20-Mar-06 21:48
Stephen Hewitt20-Mar-06 21:48 
GeneralRe: Problem with CEdit Pin
Simon Käppeli20-Mar-06 22:01
Simon Käppeli20-Mar-06 22:01 
GeneralRe: Problem with CEdit Pin
Stephen Hewitt21-Mar-06 0:03
Stephen Hewitt21-Mar-06 0:03 
GeneralRe: Problem with CEdit Pin
Simon Käppeli21-Mar-06 1:38
Simon Käppeli21-Mar-06 1:38 
GeneralRe: Problem with CEdit Pin
Stephen Hewitt21-Mar-06 11:33
Stephen Hewitt21-Mar-06 11:33 
GeneralRe: Problem with CEdit Pin
Stephen Hewitt21-Mar-06 23:13
Stephen Hewitt21-Mar-06 23:13 
QuestionUNICODE Files Pin
bosfan20-Mar-06 20:36
bosfan20-Mar-06 20:36 

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.