I know this..so what you all do here...play games
C++ is used too build operating systems, navigation systems, Networking,
so tell me smart man....nobody in here
has a example of writing a small piece of code too
grab a wan ip from the inernal wan
dave..
"Victor Bazarov" <v.Abazarov@com Acast.net> wrote in message
news:qQWRf.6227 $a97.2381@newsr ead1.mlpsca01.u s.to.verio.net. ..[color=blue]
> Dave P wrote:[color=green]
> > Need to get my wan ip from my desktop application
> > any examples[/color]
>
> Post to the newsgroup that deals with your OS. There is no 'wan ip'
> in C++ or its library.
>
> V
> --
> Please remove capital As from my address when replying by mail[/color]
Dave P wrote:
[color=blue]
> "Victor Bazarov" <v.Abazarov@com Acast.net> wrote in message
> news:qQWRf.6227 $a97.2381@newsr ead1.mlpsca01.u s.to.verio.net. ..[color=green]
>> Dave P wrote:[color=darkred]
>> > Need to get my wan ip from my desktop application
>> > any examples[/color]
>>
>> Post to the newsgroup that deals with your OS. There is no 'wan ip'
>> in C++ or its library.[/color]
>
> I know this..[/color]
If you know, why do you post here?
[color=blue]
> so what you all do here...play games[/color]
We discuss the C++ programming language as defined by the ISO standard.
[color=blue]
> C++ is used too build operating systems, navigation systems, Networking,[/color]
Indeed. And if you are looking for info on programming any of those systems,
you need to use system specific libraries that are off-topic here.
[color=blue]
> so tell me smart man....nobody in here
> has a example of writing a small piece of code too
> grab a wan ip from the inernal wan[/color]
In message <5yWRf.744$4L1. 402@newssvr11.n ews.prodigy.com >, Dave P
<dvs_bis@sbcglo bal.net> writes[color=blue]
>Need to get my wan ip from my desktop application
>any examples
>[/color]
Phone IT Support, tell them your name and the barcode on your computer,
and they will tell you. Well, that's what I'd do.
Which is to say, standard C++ has no concept of a "wan ip", so you need
to use a platform-specific library and you'd do better to ask in a
newsgroup dedicated to your particular operating system.
Dave P wrote:[color=blue]
> I know this..so what you all do here...play games[/color]
Here, we discuss C++ as defined by the ISO standard.
[color=blue]
> C++ is used too build operating systems, navigation systems, Networking,[/color]
Yes, and each one of those is different, and provide their own APIs for
things such as networking. Standard C++ does not have any networking
built in.
[color=blue]
> so tell me smart man....nobody in here
> has a example of writing a small piece of code too
> grab a wan ip from the inernal wan[/color]
Well, on my system this works:
#include <network>
using namespace network;
int main() {
address_t ip = get_external_ip ();
}
but as already mentioned, this is OS specific, I doubt very much you
have the same system as I.
Ben Pope
--
I'm not just a number. To many, I'm known as a string...
"Ben Pope" <benpope81_REMO VE_@gmail.com> wrote in message
news:44184450$0 $3295$6d36acad@ taz.nntpserver. com...[color=blue]
> Dave P wrote:[color=green]
> > I know this..so what you all do here...play games[/color]
>
> Here, we discuss C++ as defined by the ISO standard.
>[color=green]
> > C++ is used too build operating systems, navigation systems, Networking,[/color]
>
> Yes, and each one of those is different, and provide their own APIs for
> things such as networking. Standard C++ does not have any networking
> built in.
>[color=green]
> > so tell me smart man....nobody in here
> > has a example of writing a small piece of code too
> > grab a wan ip from the inernal wan[/color]
>
> Well, on my system this works:
>
> #include <network>
>
> using namespace network;
>
> int main() {
> address_t ip = get_external_ip ();
> }
>
> but as already mentioned, this is OS specific, I doubt very much you
> have the same system as I.
>
> Ben Pope
> --
> I'm not just a number. To many, I'm known as a string...[/color]
Comment