Click here to Skip to main content
15,905,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AHHHHH!!!!!! Pin
Navin28-Sep-03 16:52
Navin28-Sep-03 16:52 
GeneralRe: AHHHHH!!!!!! Pin
Terry O'Nolley29-Sep-03 4:37
Terry O'Nolley29-Sep-03 4:37 
GeneralRe: Really silly program that doesn't work Pin
Navin28-Sep-03 16:52
Navin28-Sep-03 16:52 
GeneralRe: Really silly program that doesn't work Pin
Bo Hunter28-Sep-03 19:56
Bo Hunter28-Sep-03 19:56 
GeneralRe: Really silly program that doesn't work Pin
afj66628-Sep-03 20:16
afj66628-Sep-03 20:16 
GeneralRe: Really silly program that doesn't work Pin
Bo Hunter29-Sep-03 11:16
Bo Hunter29-Sep-03 11:16 
Questionhow can i get all of the IPs in local network ? Pin
Hellin28-Sep-03 15:28
Hellin28-Sep-03 15:28 
AnswerRe: how can i get all of the IPs in local network ? Pin
Alexander M.,29-Sep-03 3:18
Alexander M.,29-Sep-03 3:18 
AnswerRe: how can i get all of the IPs in local network ? Pin
David Crow29-Sep-03 5:54
David Crow29-Sep-03 5:54 
GeneralDC line spacing???` Pin
alex.barylski28-Sep-03 10:54
alex.barylski28-Sep-03 10:54 
GeneralRe: DC line spacing???` Pin
Iain Clarke, Warrior Programmer28-Sep-03 10:59
Iain Clarke, Warrior Programmer28-Sep-03 10:59 
GeneralFiles Pin
Ni@m28-Sep-03 10:34
Ni@m28-Sep-03 10:34 
GeneralRe: Files Pin
Dave Bryant28-Sep-03 10:37
Dave Bryant28-Sep-03 10:37 
GeneralRe: Files Pin
PJ Arends28-Sep-03 16:33
professionalPJ Arends28-Sep-03 16:33 
GeneralCString Pin
Ni@m28-Sep-03 10:31
Ni@m28-Sep-03 10:31 
GeneralRe: CString Pin
Dave Bryant28-Sep-03 10:40
Dave Bryant28-Sep-03 10:40 
GeneralRe: CString Pin
l a u r e n28-Sep-03 14:03
l a u r e n28-Sep-03 14:03 
GeneralProjects?! Pin
Alex Chitea28-Sep-03 10:18
Alex Chitea28-Sep-03 10:18 
GeneralRe: Projects?! Pin
keegan28-Sep-03 16:59
keegan28-Sep-03 16:59 
GeneralThread return value... Pin
Orkun GEDiK28-Sep-03 9:41
Orkun GEDiK28-Sep-03 9:41 
GeneralRe: Thread return value... Pin
thes3cr3t129-Sep-03 11:53
thes3cr3t129-Sep-03 11:53 
GeneralWindows XP Styles Pin
Gagnon Claude28-Sep-03 9:21
Gagnon Claude28-Sep-03 9:21 
Generalsendto(); question. Pin
esepich28-Sep-03 6:28
esepich28-Sep-03 6:28 
Feel free to correct me at any time as I am still trying my best to learn this API. I know that there is a SOCKADDR structure that is able to hold data and family type. I also know that there is a SOCKADDR_IN structure that is able to hold an address, a port number, data and a family type. I have a sendechorequest function set up like this

int CSSPingDlg::SendEchoRequest(SOCKET s, SOCKADDR_IN lpstToAddr);

Now comes the interesting part. Inside this SendEchoRequest function I make a call to the sendto() function. What I take issue with is the fifth parameter of sendto(); which requires a SOCKADDR * that is supposed to contain the address of the host to which to send the data. The problem is that my ping program requires that I use a SOCKADDR_IN structure which is able to hold important information like the IP address of the host. Is there a version of sendto(); that will allow me to pass a SOCKADDR_IN instead of a plain SOCKADDR? Could it be that I am just not using sendto(); correctly.

All I know is that I want to send data to the host specified in the SOCKADDR_IN structure that I have passed to my sendechorequest function. How do I do that?
GeneralRe: sendto(); question. Pin
Steve Mayfield28-Sep-03 18:45
Steve Mayfield28-Sep-03 18:45 
GeneralCustom RichEdit Control Pin
Ph@ntom28-Sep-03 5:53
Ph@ntom28-Sep-03 5:53 

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.