165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
- (void)process
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFString *line;
OFArray *split;
OFString *action = nil;
@try {
line = [sock tryReadLine];
} @catch (OFInvalidEncodingException *e) {
line = [sock tryReadLineWithEncoding:
OF_STRING_ENCODING_WINDOWS_1252];
}
|
>
>
>
>
>
>
>
>
|
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
- (void)process
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFString *line;
OFArray *split;
OFString *action = nil;
if (sock.atEndOfStream) {
if ([delegate respondsToSelector:
@selector(connectionWasClosed:)])
[delegate connectionWasClosed: self];
return;
}
@try {
line = [sock tryReadLine];
} @catch (OFInvalidEncodingException *e) {
line = [sock tryReadLineWithEncoding:
OF_STRING_ENCODING_WINDOWS_1252];
}
|