Socket IPC Communication
|
00001 // 00002 // SocketIPCSender.h 00003 // IPC 00004 // 00005 // Created by Makara Khloth on 11/10/11. 00006 // Copyright 2011 __MyCompanyName__. All rights reserved. 00007 // 00008 00009 #import <Foundation/Foundation.h> 00010 #import <CoreFoundation/CoreFoundation.h> 00011 00012 const static NSInteger kFxSocketVersion = 123542; 00013 00014 @interface SocketIPCSender : NSObject { 00015 @private 00016 CFSocketRef mSocketRef; 00017 CFSocketContext mSocketContext; 00018 00019 NSUInteger mPort; 00020 NSString* mAddress; 00021 } 00022 00023 - (id) initWithPortNumber: (NSUInteger) aPortNumber andAddress: (NSString*) aAddress; 00024 - (BOOL) writeDataToSocket: (NSData*) aRawData; 00025 00026 @end