Article View: demon.ip.developers
Article #116Re: Mail server question, utterly clueless but a few clues should see me on my way :)
From: Nikki Locke
Date: Wed, 16 Jun 1999 00:00
Date: Wed, 16 Jun 1999 00:00
35 lines
2870 bytes
2870 bytes
In article <3768a6f3.3737861@news.demon.co.uk>, Jim M wrote: > Thought as much. Going to dig around the VC6 samples for a telnet > example. It seems that establishing a connection to everything on the > internet can be done by establishing a telnet session, pointed to a > particular port. The telnet program provided with Windows can be used as a useful way to exercise a mail or news server "by hand" (i.e. you type in the instructions, and see the responses). The actual telnet protocol is quite complex, but you don't need to use telnet protocol in your program. You just open a socket on a port, and then treat it like an input/output stream - write data or text to it, and read data or text from it. Actually, neither mail nor news involves anything except plain text. The situation is complicated in a Windows environment because you have to process the I/O through the socket asynchronously while also running your Windows message loop. The Winsock interface provides asynchronous I/O using Windows messages to indicate request completion/error. A simpler alternative might be to run the socket I/O in a separate thread for each server connection. > I suppose I've got be careful with experimenting, due to a recent > thread about portscanners in d.service. Make sure my variables don't > get corrupted and all that... Provided you have all the security patches for your operating system, and that you take similar precautions as you would reading a data file from an unknown source, you should be OK. You should have the security patches anyway, if you are ever connecting to the Internet. -- Nikki Locke, Trumphurst Ltd. PC & Unix consultancy & programming nikki@trmphrst.demon.co.uk http://www.trumphurst.com/
Technical Details
Message-ID:
<VA.00006784.00b13260@trmphrst.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<NJRzFYAO7CW3EwVK@snorter.demon.co.uk> <928529355.14476.0.nnrp-12.d4e48b20@news.demon.co.uk> <oeCKwAADYFW3EwAv@snorter.demon.co.uk> <928578844.7389.3.nnrp-07.d4e48b20@news.demon.co.uk> <3766502d.2836201@news.demon.co.uk> <929388802.17516.0.nnrp-11.d4e48b20@news.demon.co.uk> <3768a6f3.3737861@news.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bb05,c911913a3a773a1a X-Google-Attributes: gid10bb05,public From: Nikki Locke <nikki@trmphrst.demon.co.uk> Subject: Re: Mail server question, utterly clueless but a few clues should see me on my way :) Date: 1999/06/16 Message-ID: <VA.00006784.00b13260@trmphrst.demon.co.uk> X-Deja-AN: 490225739 Content-Transfer-Encoding: 8bit X-NNTP-Posting-Host: trmphrst.demon.co.uk:158.152.8.60 References: <NJRzFYAO7CW3EwVK@snorter.demon.co.uk> <928529355.14476.0.nnrp-12.d4e48b20@news.demon.co.uk> <oeCKwAADYFW3EwAv@snorter.demon.co.uk> <928578844.7389.3.nnrp-07.d4e48b20@news.demon.co.uk> <3766502d.2836201@news.demon.co.uk> <929388802.17516.0.nnrp-11.d4e48b20@news.demon.co.uk> <3768a6f3.3737861@news.demon.co.uk> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 929534588 nnrp-02:4669 NO-IDENT trmphrst.demon.co.uk:158.152.8.60 Organization: Trumphurst Ltd. Mime-Version: 1.0 Reply-To: nikki@trmphrst.demon.co.uk Newsgroups: demon.ip.developers