Click here to Skip to main content
16,014,860 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A goto box Pin
Moak6-Mar-03 15:15
Moak6-Mar-03 15:15 
GeneralRe: A goto box Pin
Christian Graus6-Mar-03 15:20
protectorChristian Graus6-Mar-03 15:20 
GeneralRe: A goto box Pin
Moak6-Mar-03 15:23
Moak6-Mar-03 15:23 
GeneralRe: A goto box Pin
Chris Meech7-Mar-03 4:54
Chris Meech7-Mar-03 4:54 
GeneralRe: A goto box Pin
Stefan Pedersen6-Mar-03 10:34
Stefan Pedersen6-Mar-03 10:34 
GeneralThe EM_SETCUEBANNER message Pin
Cancer_6-Mar-03 10:06
Cancer_6-Mar-03 10:06 
GeneralRe: The EM_SETCUEBANNER message Pin
Blake Miller7-Mar-03 9:29
Blake Miller7-Mar-03 9:29 
GeneralListening on a socket, inside a network Pin
obe6-Mar-03 10:00
obe6-Mar-03 10:00 
Hey all,

Suppose I have a LAN, and I want to run a server application on a machine INSIDE the LAN, behind the gateway machine.

mIRC is an application that does something like that. Without configuring it in any special way, it is possible to send a file to someone through the DCC protocol (according to that protocol, the machine that SENDS the file is the server, and the receiving end is the client that connects to the server).

So - it works for mIRC, but it doesn't work in my application.
I found the description of the DCC protocol online, and I am implementing a similar protocol:

1. I create the listening socket, and bind it with port 0.
2. I check what port the socket was associated with (Windows decides that for me, because I binded it with port 0)
3. I send the port number to the client
4. The client attempts to connect to my machine using the port number I sent it - and it fails, if my machine is not the gateway. BTW - the IP that the client attempts to connect to is the IP of the gateway.

Do you know how it can be done?

Thanks in advance!
Oz

GeneralRe: Listening on a socket, inside a network Pin
Moak6-Mar-03 14:59
Moak6-Mar-03 14:59 
GeneralRe: Listening on a socket, inside a network Pin
obe6-Mar-03 23:58
obe6-Mar-03 23:58 
GeneralRe: Listening on a socket, inside a network Pin
Moak7-Mar-03 2:39
Moak7-Mar-03 2:39 
GeneralRe: Listening on a socket, inside a network Pin
obe7-Mar-03 2:57
obe7-Mar-03 2:57 
GeneralRe: Listening on a socket, inside a network Pin
Moak7-Mar-03 3:20
Moak7-Mar-03 3:20 
GeneralPrinting to non-default printer without showing dialog Pin
The Lady of Shallots6-Mar-03 9:59
The Lady of Shallots6-Mar-03 9:59 
GeneralRe: Printing to non-default printer without showing dialog Pin
CodeBrain6-Mar-03 21:52
CodeBrain6-Mar-03 21:52 
GeneralRe: Printing to non-default printer without showing dialog Pin
Roger Allen7-Mar-03 2:00
Roger Allen7-Mar-03 2:00 
Generalstatic global object initialization order Pin
Scott H. Settlemier6-Mar-03 9:56
Scott H. Settlemier6-Mar-03 9:56 
GeneralRe: static global object initialization order Pin
Stefan Pedersen6-Mar-03 10:22
Stefan Pedersen6-Mar-03 10:22 
GeneralRe: static global object initialization order Pin
Tim Smith6-Mar-03 10:30
Tim Smith6-Mar-03 10:30 
Generaldecoding a tcp stream Pin
Kuniva6-Mar-03 9:55
Kuniva6-Mar-03 9:55 
GeneralRe: decoding a tcp stream Pin
Stefan Pedersen6-Mar-03 10:19
Stefan Pedersen6-Mar-03 10:19 
GeneralRe: decoding a tcp stream Pin
Anonymous6-Mar-03 10:22
Anonymous6-Mar-03 10:22 
GeneralRe: decoding a tcp stream Pin
Kuniva6-Mar-03 10:32
Kuniva6-Mar-03 10:32 
GeneralRe: decoding a tcp stream Pin
Kuniva6-Mar-03 10:37
Kuniva6-Mar-03 10:37 
GeneralRe: decoding a tcp stream Pin
Abbas_Riazi7-Mar-03 20:21
professionalAbbas_Riazi7-Mar-03 20:21 

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.