25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Implements sockname and peername for compatibility (thanks to Christohpe Romain)

SVN Revision: 2271
This commit is contained in:
Badlop 2009-06-16 18:24:22 +00:00
parent 832d59803a
commit 229c24e1f2

View File

@ -22,6 +22,7 @@
terminate/3,
send/2,
setopts/2,
sockname/1, peername/1,
controlling_process/2,
close/1,
process_request/1]).
@ -99,6 +100,11 @@ controlling_process(_Socket, _Pid) ->
close({http_bind, FsmRef}) ->
catch gen_fsm:sync_send_all_state_event(FsmRef, close).
sockname(_Socket) ->
{ok, {{0, 0, 0, 0}, 0}}.
peername(_Socket) ->
{ok, {{0, 0, 0, 0}, 0}}.
process_request(Data) ->
case catch parse_request(Data) of