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:
parent
832d59803a
commit
229c24e1f2
@ -22,6 +22,7 @@
|
|||||||
terminate/3,
|
terminate/3,
|
||||||
send/2,
|
send/2,
|
||||||
setopts/2,
|
setopts/2,
|
||||||
|
sockname/1, peername/1,
|
||||||
controlling_process/2,
|
controlling_process/2,
|
||||||
close/1,
|
close/1,
|
||||||
process_request/1]).
|
process_request/1]).
|
||||||
@ -99,6 +100,11 @@ controlling_process(_Socket, _Pid) ->
|
|||||||
close({http_bind, FsmRef}) ->
|
close({http_bind, FsmRef}) ->
|
||||||
catch gen_fsm:sync_send_all_state_event(FsmRef, close).
|
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) ->
|
process_request(Data) ->
|
||||||
case catch parse_request(Data) of
|
case catch parse_request(Data) of
|
||||||
|
Loading…
Reference in New Issue
Block a user