🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.programming
Article #29

TNMMSG component can't change IP at runtime?

#29
From: JP
Date: Sat, 17 Feb 2001 18:14
23 lines
2892 bytes
I've got the following problem :

I've spent the last few days creating a little chat-program for our own LAN.
It seems to work quite well, but only when I'm still using the IP-adress
that's been set at design-time. After I've changed the IP at runtime, it
won't work anymore. I change the IP via a string which contains the dotted
IP-adress, thus which contains something like "192.168.0.5". I've verified
that the IP-adress is right, and that the component has recyved the new IP
adress correctley (  did a Memo -> Lines -> Add ("(" + MessageClient -> Host
+ ")");  ). I've tried out the app with IP-adresses set at desgn-time over
my LAN, that works. As soon as I change the adress at runtime, even if it is
the same adress as the one which I set at design-time, it won't work
anymore. I've made a keypressed event so that whenever a user types a
sentence and presses enter, the typed sentence is sent to the server. After
I changed the IP-adress, the first time I press enter, the server just
doesn't recyve the message. The next time the client gives the error
"Already connected", and then the program stops responding. I have to kill
it using CTRL + ALT + DEL. Does anyone know what I'm doing wrong? I've read
that the Host property can be set at runtime... What's going on?

Thanks,

JP
Technical Details
Message-ID: <elvlB4QmAHA.188@net037s.hetnet.nl>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news2.kpn.net!news.kpn.net!master.news.hetnet.nl!news1.hetnet.nl

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8d38,3018f1587c24d03a,start
X-Google-Attributes: gidf8d38,public
X-Google-Thread: 103c8d,3018f1587c24d03a,start
X-Google-Attributes: gid103c8d,public
X-Google-Thread: 10a78a,3018f1587c24d03a,start
X-Google-Attributes: gid10a78a,public
X-Google-Thread: 10640b,3018f1587c24d03a,start
X-Google-Attributes: gid10640b,public
X-Google-Thread: feb9e,3018f1587c24d03a,start
X-Google-Attributes: gidfeb9e,public
X-Google-Thread: 10fbec,3018f1587c24d03a,start
X-Google-Attributes: gid10fbec,public
X-Google-Thread: 10dce5,3018f1587c24d03a,start
X-Google-Attributes: gid10dce5,public
X-Google-Thread: 102541,3018f1587c24d03a,start
X-Google-Attributes: gid102541,public
X-Google-ArrivalTime: 2001-02-17 10:20:50 PST
From: "JP" <jaapjp@hetnet.nl>
Subject: TNMMSG component can't change IP at runtime?
Date: Sat, 17 Feb 2001 19:14:02 +0100
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <elvlB4QmAHA.188@net037s.hetnet.nl>
Newsgroups: alt.comp.programming,alt.support.programming,borland.public.cpp.ide,borland.public.cpp.language,borland.public.cppbuilder.ide,borland.public.cppbuilder.language,borland.public.cppbuilder.students,forum.advanced.programming
NNTP-Posting-Host: ipd54b5f90.free.wxs.nl 213.75.95.144
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news2.kpn.net!news.kpn.net!master.news.hetnet.nl!news1.hetnet.nl