Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC6 to 2003/2005: where's native.h? Pin
Judah Gabriel Himango28-Feb-06 17:57
sponsorJudah Gabriel Himango28-Feb-06 17:57 
GeneralRe: VC6 to 2003/2005: where's native.h? Pin
Nibu babu thomas28-Feb-06 18:02
Nibu babu thomas28-Feb-06 18:02 
GeneralRe: VC6 to 2003/2005: where's native.h? Pin
Judah Gabriel Himango28-Feb-06 18:03
sponsorJudah Gabriel Himango28-Feb-06 18:03 
GeneralRe: VC6 to 2003/2005: where's native.h? Pin
Nibu babu thomas28-Feb-06 18:16
Nibu babu thomas28-Feb-06 18:16 
GeneralRe: VC6 to 2003/2005: where's native.h? Pin
Judah Gabriel Himango28-Feb-06 18:17
sponsorJudah Gabriel Himango28-Feb-06 18:17 
GeneralRe: VC6 to 2003/2005: where's native.h? Pin
Ryan Binns28-Feb-06 18:22
Ryan Binns28-Feb-06 18:22 
GeneralRe: VC6 to 2003/2005: where's native.h? Pin
Judah Gabriel Himango28-Feb-06 18:24
sponsorJudah Gabriel Himango28-Feb-06 18:24 
Questionrecvfrom Pin
derek728-Feb-06 15:46
derek728-Feb-06 15:46 
I create 2 UDP sock ,

a server sock s:
a.sin_family=AF_INET;
a.sin_addr.s_addr=0;
a.sin_port=htons(5050);
bind(s,(sockaddr *)&a,sizeof(sockaddr_in));
a client sock c:
addrto.sin_family=AF_INET;
addrto.sin_addr.s_addr=INADDR_BROADCAST;
addrto.sin_port=htons(5050);
int ret=sendto(s,smsg,256,0,(sockaddr*)&addrto,nlen);

but I can set any address and port that is pass to recvfrom () and recvfrom can receive data from client.;
so recvfrom do not use the parameter address and port ?

see below:
from.sin_family=AF_INET;
from.sin_addr.s_addr=inet_addr("198.24.125.14")//any address;
from.sin_port=htons(5455)//any port;
recvfrom(s,buf,256,0,(struct sockaddr FAR *)&from,(int FAR *)&fromlength);
Questiontake parameters from command line Pin
taoquandecor28-Feb-06 15:39
taoquandecor28-Feb-06 15:39 
AnswerRe: take parameters from command line Pin
Naveen28-Feb-06 16:02
Naveen28-Feb-06 16:02 
AnswerRe: take parameters from command line Pin
Nibu babu thomas28-Feb-06 17:04
Nibu babu thomas28-Feb-06 17:04 
QuestionMust I bind a port for server sock? Pin
derek728-Feb-06 15:21
derek728-Feb-06 15:21 
AnswerRe: Must I bind a port for server sock? Pin
Nibu babu thomas28-Feb-06 17:15
Nibu babu thomas28-Feb-06 17:15 
AnswerRe: Must I bind a port for server sock? Pin
Ryan Binns28-Feb-06 18:11
Ryan Binns28-Feb-06 18:11 
QuestionSir,Can any Help me ,I want to Know For What Generic Reason Will Applications Developed in VC++ Will Crash? Pin
CodeVarma28-Feb-06 14:58
CodeVarma28-Feb-06 14:58 
AnswerRe: Sir,Can any Help me ,I want to Know For What Generic Reason Will Applications Developed in VC++ Will Crash? Pin
mbue28-Feb-06 15:09
mbue28-Feb-06 15:09 
AnswerRe: Sir,Can any Help me ,I want to Know For What Generic Reason Will Applications Developed in VC++ Will Crash? Pin
QuickDeveloper28-Feb-06 17:15
QuickDeveloper28-Feb-06 17:15 
GeneralRe: Sir,Can any Help me ,I want to Know For What Generic Reason Will Applications Developed in VC++ Will Crash? Pin
Stephen Hewitt1-Mar-06 11:36
Stephen Hewitt1-Mar-06 11:36 
QuestionCan code be given exclusive CPU access in XP? Pin
Simon Steel28-Feb-06 14:16
Simon Steel28-Feb-06 14:16 
AnswerRe: Can code be given exclusive CPU access in XP? Pin
mbue28-Feb-06 14:40
mbue28-Feb-06 14:40 
AnswerRe: Can code be given exclusive CPU access in XP? Pin
Ryan Binns28-Feb-06 18:12
Ryan Binns28-Feb-06 18:12 
AnswerRe: Can code be given exclusive CPU access in XP? Pin
BadKarma28-Feb-06 20:29
BadKarma28-Feb-06 20:29 
QuestionDDX_Control and DDX_Text Pin
derek728-Feb-06 13:48
derek728-Feb-06 13:48 
AnswerRe: DDX_Control and DDX_Text Pin
mbue28-Feb-06 14:31
mbue28-Feb-06 14:31 
GeneralRe: DDX_Control and DDX_Text Pin
derek728-Feb-06 15:08
derek728-Feb-06 15:08 

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.