29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#import "OFNumber.h"
#ifdef _WIN32
# import "OFTCPSocket.h"
#endif
#import "OFAutoreleasePool.h"
#ifdef HAVE_POLL_H
# import "OFStreamPollObserver.h"
#endif
#if defined(HAVE_SYS_SELECT_H) || defined(_WIN32)
# import "OFStreamSelectObserver.h"
#endif
#import "OFInitializationFailedException.h"
#import "OFNotImplementedException.h"
#import "OFOutOfRangeException.h"
#import "macros.h"
|
|
|
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#import "OFNumber.h"
#ifdef _WIN32
# import "OFTCPSocket.h"
#endif
#import "OFAutoreleasePool.h"
#ifdef HAVE_POLL_H
# import "OFStreamObserver_poll.h"
#endif
#if defined(HAVE_SYS_SELECT_H) || defined(_WIN32)
# import "OFStreamObserver_select.h"
#endif
#import "OFInitializationFailedException.h"
#import "OFNotImplementedException.h"
#import "OFOutOfRangeException.h"
#import "macros.h"
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
return [[[self alloc] init] autorelease];
}
#if defined(HAVE_POLL_H)
+ alloc
{
if (self == [OFStreamObserver class])
return [OFStreamPollObserver alloc];
return [super alloc];
}
#elif defined(HAVE_SYS_SELECT_H) || defined(_WIN32)
+ alloc
{
if (self == [OFStreamObserver class])
return [OFStreamSelectObserver alloc];
return [super alloc];
}
#endif
- init
{
|
|
|
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
return [[[self alloc] init] autorelease];
}
#if defined(HAVE_POLL_H)
+ alloc
{
if (self == [OFStreamObserver class])
return [OFStreamObserver_poll alloc];
return [super alloc];
}
#elif defined(HAVE_SYS_SELECT_H) || defined(_WIN32)
+ alloc
{
if (self == [OFStreamObserver class])
return [OFStreamObserver_select alloc];
return [super alloc];
}
#endif
- init
{
|