Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Source/BroadcasterDaemon/main.m
/* |
File: main.m |
Description: This file instantiates the Broadcaster daemon object which handles |
the connection between the cgi and QuickTime Broadcaster. |
*/ |
#import <Foundation/Foundation.h> |
#import "BroadcasterDaemon.h" |
int main(int argc, const char *argv[]) |
{ |
NSAutoreleasePool *pool; |
// init |
pool = [[NSAutoreleasePool alloc] init]; |
// daemonize |
daemon(0, 0); |
// init the Broadcaster daemon |
[[[BroadcasterDaemon alloc] init] autorelease]; |
// run forever |
[[NSRunLoop currentRunLoop] run]; |
// release |
[pool release]; |
return 0; |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14