aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-07 13:21:47 +0200
committerHarald Welte <laforge@gnumonks.org>2010-08-07 13:21:47 +0200
commit7d72eb401c8764227b01779e7f1713f0585c1fd3 (patch)
tree055cb45528cd4bf7a7d996f73ff108839693bfbb
parent53c1974b1720c93b7b79363a7643edf064cc4946 (diff)
remove main loop from tcap_map_patch
-rw-r--r--src/tcap_map_patch.erl13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/tcap_map_patch.erl b/src/tcap_map_patch.erl
index 8e822fc..7134bf6 100644
--- a/src/tcap_map_patch.erl
+++ b/src/tcap_map_patch.erl
@@ -31,10 +31,6 @@
-include("MAP.hrl").
-init(ServerPort) ->
- {ok, Sock} = gen_udp:open(ServerPort, [binary, inet]),
- loop().
-
% patch a UpdateGprsLocationArg and replace SGSN number and SGSN address
% !!! TESTING ONLY !!!
patch(#'UpdateGprsLocationArg'{} = P) ->
@@ -281,12 +277,3 @@ handle_tcap_msg(PayloadL) ->
handle_tcap_msg_dec(Type, TcapMsgDec);
Error -> Error
end.
-
-loop() ->
- io:format("udp_server_loop~n"),
- receive {udp, Sock, ClientIP, ClientPort, Packet} ->
- io:format("UDP received from ~p:~p ==> ~p~n", [ClientIP, ClientPort, Packet]),
- handle_tcap_msg(binary_to_list(Packet))%,
- %loop()
- end.
-