25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
static OFString *module = @"OFTCPSocket";
void
tcpsocket_tests()
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFSocket *server, *client = nil, *accepted;
OFString *service, *msg;
uint16_t port;
char buf[6];
srand(time(NULL));
port = (uint16_t)rand();
if (port < 1024)
|
|
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
static OFString *module = @"OFTCPSocket";
void
tcpsocket_tests()
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFTCPSocket *server, *client = nil, *accepted;
OFString *service, *msg;
uint16_t port;
char buf[6];
srand(time(NULL));
port = (uint16_t)rand();
if (port < 1024)
|