SCOUG-Programming Mailing List Archives
Return to [ 01 |
March |
2000 ]
Content Type: text/plain
Hi,
I want to write a small monitoring module that will run on my machine
along with my email software (Netscape 2.02, and I use it because I like
the "threading" view).
I want the email program (NS202) to connect to my monitoring module,
which will watch all email traffic in both directions, and then the
monitoring module will communicate with whatever the email software
normally communicates with.
I know how to open a socket and connect it to a server so I can send the
server some commands and then "listen" for a response. What I don't
know is how to open a socket so it will "listen" for a command from the
email software. How do I do this? (What setting do I have to change in
the email software to get it to send a command to the monitoring
module? How does the monitoring module tell TCP/IP that it is indeed
the module that the email software is looking for?)
And suppose I have several different monitoring modules strung together
like filters on a command line: I know each monitoring module plus the
email software only communicates directly with TCP/IP, but how do I link
the modules together in a certain sequence? I presume I have to give
unique names to each module and have each module tell TCP/IP what the
name of the other module is that it is to link to - how do I do this?
For example, if I have two monitoring modules A, B (MMA, MMB) plus
Netscape 2.02 (NS202):
(Use a fixed width font to view the following)
The logical diagram looks like this:
rest of world <-> TCP/IP <-> MMA <-> MMB <-> NS202
And the actual communication connections are:
/|<-> MMA
rest of world <-> TCP/IP |<-> MMB
\|<-> NS202
What do MMA and MMB have to specify to TCP/IP so they're connected in
the desired sequence?
An example of the actual calls would be helpful.
Thanks. :)
- Peter
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
Return to [ 01 |
March |
2000 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|