🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9694

Re: Imitating Telnet

#9694
From: Remy Lebeau (TeamB)
Date: Thu, 17 Jun 2004 09:15
18 lines
1708 bytes
"Feico" <feicorem0veth1s@gmx.net> wrote in message
news:abh2d0584m181inkbu2354d3aevk2cmia6@4ax.com...

> Okay, I tried it. I now have three programs, which only differ in
(probably minor) details. All
> three produce the same result.

Change this line:

    sa.sin_port = port;

To this instead:

    sa.sin_port = htons(port);


Gambit
Technical Details
Message-ID: <40d16232$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!colt.net!newsfeed.icl.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <mk4kc0lf2ku8qbgk2n98eav00l9b0552u5@4ax.com> <40ca1c3f$1@newsgroups.borland.com> <ca9kc0pg43rmc29o9t346a4atb3ko8s7n8@4ax.com> <40ca2dc2$1@newsgroups.borland.com> <njuqc0p935q7en7t7hhqekd8lsllierpmp@4ax.com> <t5rrc0llo0s8nkh70nehnltbcf3aainb6r@4ax.com> <2c4tc09vc8jgm32ahuufv9lt8a4ld4j960@4ax.com> <50auc0ljtkbensa9erhvf8hr4rbkjfj5ka@4ax.com> <a7k0d0lm7htcsem1ve3179ld2bcpsj8hbs@4ax.com> <40d07cbe$1@newsgroups.borland.com> <abh2d0584m181inkbu2354d3aevk2cmia6@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6ff98bec32bcdef
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <mk4kc0lf2ku8qbgk2n98eav00l9b0552u5@4ax.com> <40ca1c3f$1@newsgroups.borland.com> <ca9kc0pg43rmc29o9t346a4atb3ko8s7n8@4ax.com> <40ca2dc2$1@newsgroups.borland.com> <njuqc0p935q7en7t7hhqekd8lsllierpmp@4ax.com> <t5rrc0llo0s8nkh70nehnltbcf3aainb6r@4ax.com> <2c4tc09vc8jgm32ahuufv9lt8a4ld4j960@4ax.com> <50auc0ljtkbensa9erhvf8hr4rbkjfj5ka@4ax.com> <a7k0d0lm7htcsem1ve3179ld2bcpsj8hbs@4ax.com> <40d07cbe$1@newsgroups.borland.com> <abh2d0584m181inkbu2354d3aevk2cmia6@4ax.com>
Subject: Re: Imitating Telnet
Date: Thu, 17 Jun 2004 02:15:32 -0700
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.169.168.124
Message-ID: <40d16232$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087463986 68.169.168.124 (17 Jun 2004 02:19:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!colt.net!newsfeed.icl.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail