mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Added missed tls:recv_data/2
This commit is contained in:
parent
af2e9169e6
commit
91964b1aba
@ -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} ->
|
||||
|
Loading…
Reference in New Issue
Block a user