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:
parent
af2e9169e6
commit
91964b1aba
@ -33,6 +33,7 @@
|
|||||||
tcp_to_tls/2, tls_to_tcp/1,
|
tcp_to_tls/2, tls_to_tcp/1,
|
||||||
send/2,
|
send/2,
|
||||||
recv/2, recv/3,
|
recv/2, recv/3,
|
||||||
|
recv_data/2,
|
||||||
setopts/2,
|
setopts/2,
|
||||||
sockname/1, peername/1,
|
sockname/1, peername/1,
|
||||||
controlling_process/2,
|
controlling_process/2,
|
||||||
@ -176,6 +177,9 @@ recv(#tlssock{tcpsock = TCPSocket, tlsport = Port} = TLSSock,
|
|||||||
{error, binary_to_list(Error)}
|
{error, binary_to_list(Error)}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
recv_data(TLSSock, Packet) ->
|
||||||
|
recv_data(TLSSock, Packet, 0).
|
||||||
|
|
||||||
recv_data(TLSSock, Packet, Length) ->
|
recv_data(TLSSock, Packet, Length) ->
|
||||||
case catch recv_data1(TLSSock, Packet, Length) of
|
case catch recv_data1(TLSSock, Packet, Length) of
|
||||||
{'EXIT', Reason} ->
|
{'EXIT', Reason} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user