Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: which should use pipe or socket at Client-server Pin
Parthiban12-Oct-08 20:31
Parthiban12-Oct-08 20:31 
AnswerRe: which should use pipe or socket at Client-server Pin
SandipG 12-Oct-08 20:37
SandipG 12-Oct-08 20:37 
GeneralRe: which should use pipe or socket at Client-server Pin
singh_nav13-Oct-08 19:20
singh_nav13-Oct-08 19:20 
GeneralRe: which should use pipe or socket at Client-server Pin
SandipG 13-Oct-08 21:30
SandipG 13-Oct-08 21:30 
GeneralRe: which should use pipe or socket at Client-server Pin
singh_nav14-Oct-08 17:09
singh_nav14-Oct-08 17:09 
GeneralRe: which should use pipe or socket at Client-server Pin
SandipG 20-Oct-08 3:46
SandipG 20-Oct-08 3:46 
QuestionHow to get IP address? Pin
monsieur_jj12-Oct-08 19:25
monsieur_jj12-Oct-08 19:25 
AnswerRe: How to get IP address? Pin
kcynic12-Oct-08 19:43
kcynic12-Oct-08 19:43 
get host name first and then get the details. The following code might be helpful:

char host_name[128];
hostent* host;
gethostname(host_name,128);
host = gethostbyname(host_name);
printf("The local host: Address : %s\n", inet_ntoa(*(struct in_addr*)host->h_addr));

Regards
GeneralRe: How to get IP address? Pin
monsieur_jj12-Oct-08 20:01
monsieur_jj12-Oct-08 20:01 
GeneralRe: How to get IP address? Pin
kcynic12-Oct-08 20:06
kcynic12-Oct-08 20:06 
GeneralRe: How to get IP address? Pin
monsieur_jj12-Oct-08 20:17
monsieur_jj12-Oct-08 20:17 
GeneralRe: How to get IP address? Pin
enhzflep12-Oct-08 20:34
enhzflep12-Oct-08 20:34 
GeneralRe: How to get IP address? Pin
kcynic12-Oct-08 20:36
kcynic12-Oct-08 20:36 
GeneralRe: How to get IP address? Pin
monsieur_jj12-Oct-08 20:42
monsieur_jj12-Oct-08 20:42 
GeneralRe: How to get IP address? Pin
kcynic12-Oct-08 21:01
kcynic12-Oct-08 21:01 
GeneralRe: How to get IP address? Pin
monsieur_jj12-Oct-08 21:18
monsieur_jj12-Oct-08 21:18 
AnswerRe: How to get IP address? Pin
Hamid_RT12-Oct-08 21:28
Hamid_RT12-Oct-08 21:28 
GeneralRe: How to get IP address? Pin
monsieur_jj12-Oct-08 21:50
monsieur_jj12-Oct-08 21:50 
QuestionDebug child process Pin
LiYS12-Oct-08 19:10
LiYS12-Oct-08 19:10 
AnswerRe: Debug child process Pin
_AnsHUMAN_ 12-Oct-08 19:19
_AnsHUMAN_ 12-Oct-08 19:19 
GeneralRe: Debug child process Pin
LiYS12-Oct-08 19:56
LiYS12-Oct-08 19:56 
GeneralRe: Debug child process Pin
_AnsHUMAN_ 12-Oct-08 21:41
_AnsHUMAN_ 12-Oct-08 21:41 
AnswerRe: Debug child process Pin
Iain Clarke, Warrior Programmer13-Oct-08 18:13
Iain Clarke, Warrior Programmer13-Oct-08 18:13 
QuestionCan i simplify this data structure? Pin
york12222222222212-Oct-08 17:45
york12222222222212-Oct-08 17:45 
QuestionRe: Can i simplify this data structure? Pin
led mike12-Oct-08 17:54
led mike12-Oct-08 17:54 

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.