25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Added missed tls:recv_data/2

This commit is contained in:
Alexey Shchepin 2012-03-23 11:04:26 +02:00 committed by Paweł Chmielowski
parent af2e9169e6
commit 91964b1aba

View File

@ -33,6 +33,7 @@
tcp_to_tls/2, tls_to_tcp/1,
send/2,
recv/2, recv/3,
recv_data/2,
setopts/2,
sockname/1, peername/1,
controlling_process/2,
@ -176,6 +177,9 @@ recv(#tlssock{tcpsock = TCPSocket, tlsport = Port} = TLSSock,
{error, binary_to_list(Error)}
end.
recv_data(TLSSock, Packet) ->
recv_data(TLSSock, Packet, 0).
recv_data(TLSSock, Packet, Length) ->
case catch recv_data1(TLSSock, Packet, Length) of
{'EXIT', Reason} ->