@interface GDBpConnection : NSObject
{
- int port;
+ NSUInteger port;
BOOL connected;
/**
* An ever-increasing integer that gives each transaction a unique ID for
* the debugging engine. Managed by |-createCommand:|.
*/
- int transactionID;
+ NSUInteger transactionID;
/**
* Human-readable status of the connection
CFReadStreamRef readStream_;
// The most recently received transaction ID.
- int lastReadTransaction_;
+ NSUInteger lastReadTransaction_;
// Information about the current read loop. We append to |currentPacket_|
// until |currentPacketSize_| has reached |packetSize_|.
CFWriteStreamRef writeStream_;
// The last transactionID written to the stream.
- int lastWrittenTransaction_;
+ NSUInteger lastWrittenTransaction_;
// A dictionary that maps routingIDs to StackFrame objects.
NSMutableDictionary* stackFrames_;
@property (assign) id <GDBpConnectionDelegate> delegate;
// initializer
-- (id)initWithPort:(int)aPort;
+- (id)initWithPort:(NSUInteger)aPort;
// getter
-- (int)port;
+- (NSUInteger)port;
- (NSString*)remoteHost;
- (BOOL)isConnected;
- (NSArray*)getCurrentStack;
@property (readwrite, copy) NSString* status;
@property (assign) CFSocketRef socket;
@property (assign) CFReadStreamRef readStream;
-@property int lastReadTransaction;
+@property NSUInteger lastReadTransaction;
@property (retain) NSMutableString* currentPacket;
@property (assign) CFWriteStreamRef writeStream;
-@property int lastWrittenTransaction;
+@property NSUInteger lastWrittenTransaction;
@property (retain) NSMutableArray* queuedWrites;
- (void)connect;
* Creates a new DebuggerConnection and initializes the socket from the given connection
* paramters.
*/
-- (id)initWithPort:(int)aPort
+- (id)initWithPort:(NSUInteger)aPort
{
if (self = [super init])
{
/**
* Gets the port number
*/
-- (int)port
+- (NSUInteger)port
{
return port;
}