Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: code for MultiThreaded Progress bar Pin
Stephen C. Steel16-May-02 11:59
Stephen C. Steel16-May-02 11:59 
QuestionWriting a driver? Pin
karanba14-May-02 22:21
karanba14-May-02 22:21 
AnswerRe: Writing a driver? Pin
Jon Hulatt14-May-02 23:58
Jon Hulatt14-May-02 23:58 
Generalincloming socket address Pin
Kristian3314-May-02 22:09
Kristian3314-May-02 22:09 
GeneralRe: incloming socket address Pin
Rickard Andersson2014-May-02 22:20
Rickard Andersson2014-May-02 22:20 
GeneralRe: incloming socket address Pin
Nish Nishant14-May-02 22:21
sitebuilderNish Nishant14-May-02 22:21 
GeneralRe: incloming socket address Pin
markkuk14-May-02 22:21
markkuk14-May-02 22:21 
GeneralRe: incloming socket address Pin
Orbital^14-May-02 22:26
Orbital^14-May-02 22:26 
It goes like this :

if((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size)) == -1)
{
perror("accept");
}
printf("server: got connection from %s\n", inet_ntoa(their_addr.sin_addr));

The remote adrese is returned by the secondn parameter of 'accept' function

Bye,
Orbital^

...the night is long ... but not long enought to do some real coding ...
GeneralRe: incloming socket address Pin
Kristian3314-May-02 22:45
Kristian3314-May-02 22:45 
GeneralSTL program Pin
Orbital^14-May-02 21:41
Orbital^14-May-02 21:41 
GeneralRe: STL program Pin
Christian Graus14-May-02 22:00
protectorChristian Graus14-May-02 22:00 
GeneralRe: STL program Pin
markkuk14-May-02 22:08
markkuk14-May-02 22:08 
GeneralRe: STL program Pin
Orbital^14-May-02 22:19
Orbital^14-May-02 22:19 
GeneralRe: STL program Pin
Nish Nishant14-May-02 22:23
sitebuilderNish Nishant14-May-02 22:23 
GeneralRe: STL program Pin
Orbital^14-May-02 22:29
Orbital^14-May-02 22:29 
GeneralRe: STL program Pin
Nish Nishant14-May-02 22:33
sitebuilderNish Nishant14-May-02 22:33 
GeneralRe: STL program Pin
markkuk14-May-02 22:26
markkuk14-May-02 22:26 
GeneralWhy is this so sh*tty ? (CComControlBase::IDataObject_GetData) Pin
Braulio Dez14-May-02 21:36
Braulio Dez14-May-02 21:36 
GeneralRemote Desktop Sharing Pin
Birdy14-May-02 21:27
Birdy14-May-02 21:27 
QuestionHow to make an application background service Pin
Birdy14-May-02 21:20
Birdy14-May-02 21:20 
AnswerRe: How to make an application background service Pin
Orbital^14-May-02 21:46
Orbital^14-May-02 21:46 
AnswerRe: How to make an application background service Pin
Nish Nishant14-May-02 22:00
sitebuilderNish Nishant14-May-02 22:00 
GeneralMFC+DAO database, 0 records inspite of data in file Pin
samiujan14-May-02 20:05
samiujan14-May-02 20:05 
GeneralRe: MFC+DAO database, 0 records inspite of data in file Pin
John Clump14-May-02 22:22
John Clump14-May-02 22:22 
GeneralRe: MFC+DAO database, 0 records inspite of data in file Pin
samiujan15-May-02 1:48
samiujan15-May-02 1:48 

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.