63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
if (ret == 0)
eos = YES;
return ret;
}
- (size_t)writeNBytes: (size_t)size
fromBuffer: (const char*)buf
{
ssize_t ret;
if (sock == INVALID_SOCKET)
@throw [OFNotConnectedException newWithClass: isa];
if ((ret = send(sock, buf, size, 0)) == -1)
|
|
|
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
if (ret == 0)
eos = YES;
return ret;
}
- (size_t)writeNBytesWithoutCache: (size_t)size
fromBuffer: (const char*)buf
{
ssize_t ret;
if (sock == INVALID_SOCKET)
@throw [OFNotConnectedException newWithClass: isa];
if ((ret = send(sock, buf, size, 0)) == -1)
|