RSS

(root)/iphone/tappity : 46 : tappity/source/TappityClient.h

To get this branch, use:
bzr branch /browse/iphone/tappity

« back to all changes in this revision

Viewing changes to tappity/source/TappityClient.h

Dömötör Gulyás
2009-10-27 01:03:19
Revision ID: dognotdog@gmail.com-20091027000319-1vrkixkgf9lkud6g
adds tappity project

Show diffs side-by-side

added added

removed removed

 
1
//
 
2
//  TappityClient.h
 
3
//  tappity
 
4
//
 
5
//  Created by döme on 25.10.2009.
 
6
//  Copyright 2009 __MyCompanyName__. All rights reserved.
 
7
//
 
8
 
 
9
#import <Foundation/Foundation.h>
 
10
 
 
11
 
 
12
#include <stdint.h>
 
13
#include <sys/socket.h>
 
14
#include <fcntl.h>
 
15
#include <termios.h>
 
16
#include <netinet/in.h>
 
17
#include <arpa/inet.h>
 
18
 
 
19
 
 
20
 
 
21
@interface TappityClient : NSObject
 
22
{
 
23
//      struct sockaddr_in peerAddress;
 
24
 
 
25
        int commsSocket;
 
26
        
 
27
        NSMutableDictionary* activeThreads;
 
28
        int threadIds;
 
29
                
 
30
        uint32_t                expectedMessageSize, currentlyRead;
 
31
        NSMutableData*  currentData;
 
32
        
 
33
        NSMutableArray*         sendQueue;
 
34
        
 
35
        NSCondition*            sendLock;
 
36
}
 
37
 
 
38
- (void) connectToService: (NSNetService*) service;
 
39
 
 
40
- (void) sendTouch: (UIEvent*) event inPhase: (int) phase;
 
41
 
 
42
@end

Loggerhead 1.17 is a web-based interface for Bazaar branches