2 * ioSockThr.h - socket-based I/O routines for SecureTransport tests
5 #ifndef _IO_SOCK_THR_H_
6 #define _IO_SOCK_THR_H_
9 #include <Security/SecureTransport.h>
16 * Opaque reference to a connection.
21 * info about a peer returned from MakeServerConnection() and
22 * AcceptClientConnection().
37 extern OSStatus
MakeServerConnection(
40 otSocket
*socketNo
, // RETURNED
41 PeerSpec
*peer
); // RETURNED
44 * Accept a client connection.
46 OSStatus
AcceptClientConnection(
48 otSocket
*socketNo
, // RETURNED
49 PeerSpec
*peer
); // RETURNED
52 * Shut down a connection.
54 void endpointShutdown(
58 * R/W. Called out from SSL.
61 SSLConnectionRef connection
,
62 void *data
, /* owned by
65 size_t *dataLength
); /* IN/OUT */
68 SSLConnectionRef connection
,
70 size_t *dataLength
); /* IN/OUT */
76 #endif /* _IO_SOCK_THR_H_ */