Click here to Skip to main content
15,925,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Best strategy for long-term timer? Pin
Ravi Bhavnani4-May-05 7:22
professionalRavi Bhavnani4-May-05 7:22 
GeneralResource with csv values Pin
Anonymous4-May-05 0:37
Anonymous4-May-05 0:37 
GeneralRe: Resource with csv values Pin
David Crow4-May-05 3:29
David Crow4-May-05 3:29 
GeneralRe: Resource with csv values Pin
Blake Miller4-May-05 4:20
Blake Miller4-May-05 4:20 
GeneralMPEG Socket programming Pin
Sameeeer4-May-05 0:08
Sameeeer4-May-05 0:08 
GeneralRe: MPEG Socket programming Pin
Anonymous4-May-05 20:30
Anonymous4-May-05 20:30 
GeneralRe: MPEG Socket programming Pin
Sameeeer4-May-05 23:56
Sameeeer4-May-05 23:56 
GeneralGet remote IP Pin
DKT_3-May-05 23:07
DKT_3-May-05 23:07 
Hi,

I have a server-client based chat app.

Now I want to implement that you can send files. For that, I created a new data socket on the side of the one who will receive the file. I thought it would be faster not to go through the server, but to have a peer to peer connection for file transfer. But my problem is: How can I tell the other one which IP I have, so that he can connect on it.
When I use getsockname, I get the local IP. For example: Server and Client are running on the same machine. Now, if the server reads the IP of the client who is connected, it get 127.0.0.1, which isnt useful!

So, two questions: How to get the global IP?
Second: Am I to strict, saying that sending a file from one client through server to another client is too slow?!


DKT
GeneralRe: Get remote IP Pin
ThatsAlok3-May-05 23:25
ThatsAlok3-May-05 23:25 
Questionhow to create another formview? Pin
steven_wong3-May-05 21:33
steven_wong3-May-05 21:33 
AnswerRe: how to create another formview? Pin
liquid_4-May-05 10:07
liquid_4-May-05 10:07 
GeneralRe: how to create another formview? Pin
steven_wong4-May-05 15:05
steven_wong4-May-05 15:05 
GeneralRe: how to create another formview? Pin
liquid_7-May-05 1:04
liquid_7-May-05 1:04 
GeneralRe: how to create another formview? Pin
steven_wong7-May-05 5:14
steven_wong7-May-05 5:14 
GeneralRestrict my application to one instance only Pin
Rajesh_K_Sharma3-May-05 21:19
Rajesh_K_Sharma3-May-05 21:19 
GeneralRe: Restrict my application to one instance only Pin
ThatsAlok3-May-05 21:33
ThatsAlok3-May-05 21:33 
GeneralRe: Restrict my application to one instance only Pin
Claudio Grazioli3-May-05 21:38
Claudio Grazioli3-May-05 21:38 
GeneralRe: Restrict my application to one instance only Pin
Aamir Butt4-May-05 0:58
Aamir Butt4-May-05 0:58 
GeneralRe: Restrict my application to one instance only Pin
Claudio Grazioli4-May-05 1:24
Claudio Grazioli4-May-05 1:24 
GeneralRe: Restrict my application to one instance only Pin
Aamir Butt4-May-05 19:08
Aamir Butt4-May-05 19:08 
GeneralRe: Restrict my application to one instance only Pin
David Crow4-May-05 3:31
David Crow4-May-05 3:31 
GeneralRe: Restrict my application to one instance only Pin
itkid4-May-05 20:54
itkid4-May-05 20:54 
GeneralMenu Pin
Anonymous3-May-05 20:48
Anonymous3-May-05 20:48 
GeneralRe: Menu Pin
ThomasABBE4-May-05 1:45
ThomasABBE4-May-05 1:45 
GeneralMultiple http-requests are stuck Pin
meremortal3-May-05 20:44
meremortal3-May-05 20:44 

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.