32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
* \brief A class which provides functions to create and use TCP sockets.
*
* To connect to a server, create a socket and connect it.
* To create a server, create a socket, bind it and listen on it.
*/
@interface OFTCPSocket: OFStreamSocket
{
BOOL isListening;
struct sockaddr_storage *sockAddr;
socklen_t sockAddrLen;
}
/**
* \brief Connect the OFTCPSocket to the specified destination.
*
* \param host The host to connect to
* \param port The port on the host to connect to
*/
|
|
>
>
>
>
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
* \brief A class which provides functions to create and use TCP sockets.
*
* To connect to a server, create a socket and connect it.
* To create a server, create a socket, bind it and listen on it.
*/
@interface OFTCPSocket: OFStreamSocket
{
BOOL listening;
struct sockaddr_storage *sockAddr;
socklen_t sockAddrLen;
}
#ifdef OF_HAVE_PROPERTIES
@property (assign, readonly, getter=isBlocking) BOOL *listening;
#endif
/**
* \brief Connect the OFTCPSocket to the specified destination.
*
* \param host The host to connect to
* \param port The port on the host to connect to
*/
|