Package com.wolfssl
Interface WolfSSLIOSendCallback
-
public interface WolfSSLIOSendCallback
wolfSSL I/O Send Callback Interface. This interface specifies how applicaitons should implement the I/O send callback class to be used by wolfSSL.After implementing this interface, it should be passed as a parameter to the
WolfSSLContext.setIOSend()
method to be registered with the native wolfSSL library.- Version:
- 1.0, August 2013
- Author:
- wolfSSL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
sendCallback(WolfSSLSession ssl, byte[] buf, int sz, java.lang.Object ctx)
I/O send callback method.
-
-
-
Method Detail
-
sendCallback
int sendCallback(WolfSSLSession ssl, byte[] buf, int sz, java.lang.Object ctx)
I/O send callback method. This method acts as the I/O send callback to be used with wolfSSL. This can be registered with an SSL session using the WolfSSLContext#setIOSend(WolfSSLIOSendCallback) method.- Parameters:
ssl
- the current SSL session object from which the callback was initiated.buf
- buffer containing data to be sent to the peer.sz
- size of data in buffer "buf"ctx
- I/O context to be used.- Returns:
- the number of bytes sent, or an error. For possible error codes, see the default EmbedSend() function in wolfssl_package/src/io.c
-
-