tfGetSendCompltBytes
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| int tfGetSendCompltBytes | (int socketDescriptor); |
Function Description
This function is used to get the number of sent bytes that have been acked since the last call to tfGetSendCompltBytes() call by the peer on a TCP socket.
Parameters
- socketDescriptor
- The socket descriptor to check on the amount of bytes acked by the peer.
Returns
- >= 0
- The number of bytes that have been sent to and ACK'ed by the TCP peer.
- TM_SOCKET_ERROR
- Failure.
| TM_SOCKET_ERROR means that this socket call has failed and the errorCode has been set on the socket itself.
To retrieve the socket error the user must call tfGetSocketError(socketDescriptor). |
Possible socket errors
- TM_EBADF
- 'socketDescriptor' is not a valid descriptor.
- TM_EOPNOTSUPP
- The socket is not a TCP socket.