Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Processing all TCP/UDP streams



On Wednesday, January 31, 2001, at 01:23 AM, David Rehring wrote:

> Is there a clean way in Darwin/Mac OS X to process all TCP/UDP streams so
> all data sent/received by regular UNIX applications, as well as
> Cocoa/Carbon/Classic can be processed.
>
> Kind of like the 'VMSify' sample code Open Transport module...

Take a look at the Networking folder in the CVS tree. There are several projects there, including a version of Quinn's VMSIfy and TCPLogger, an extension that camps on all new incoming and outgoing TCP connections, logs the activity, and at termination of each connection, puts a stats structure on a queue for reading by the tcplog command for printing. It's a bit contrived, but it shows roughly how to do what you are interested in.

Documentation is available for NKEs (mentioned in an earlier post).

Regards,

Justin

Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics |
Manager, CoreOS Networking | It's not whether you win
Apple Computer, Inc. | or lose...
2 Infinite Loop | It's whether *I* win or lose.
Cupertino, CA 95014 |
*---------------------------------------*-------------------------------*




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.