On Wed, 5 Jan 2000, Peter Onion wrote:
On 04-Jan-00 jg@cyberstorm.demon.co.uk wrote:
Hi all,
I'm need to create a library or class which will open a net connection and communicate with a news server. Yes, I need to create it myself.
What exactly are you after ?
OK, my question was based on the assumption that the user had configured the software either to do 'live' communications or store the messages locally for later posting ('on-connect', etc).
Either way I need to connect to a news server to read/post.
Is the network already connected ? If yes then you just need to open a tcp/ip socket. If no, then its going to be much harder and may depend on the way the user normally starts their ppp connection.
If it's ppp-script based for connection, then I could simply be run with a command-line arguement which would stop the main app from loading and simply run the bit to exchange views with the server. Of course this way I'd need to check about multiple copies running which could be a pig (I could grep a ps I suppose).