anchor.diff:  			{What,Why}
   	end.
   
  -confirm_connect_message(Message, #state{ssl_socket = SSLSocket}) ->
  -	confirm_connect_message(Message, SSLSocket);
  -
  -confirm_connect_message(Message, SSLSocket) ->
  +confirm_connect_message(Message, State) ->
  +	#state{ssl_socket = SSLSocket, tcp_socket = TCPSocket, udp_socket = UDPSocket} = State,
   	% Send response over SSL transport
   	#envelope{type = request, channel = <<"control">>, id = MsgID} = Message,
   	ConnectRep = {struct, [
  
positive.code: 		aes_vector = AESVector
  	};
  
  service_control_message(event, <<"logout">>, _, _, State) ->
  	?info("Got logout event from client."),
  	{State, 100}.
  
  %% ------------------------------------------------------------------
  
  
negative.code: 	{noreply, State};
  
  handle_cast({send, udp, Type, Channel, Json}, State) ->
  	#state{udp_socket = Socket, udp_remote_info = {Ip, Port}} = State,
  	Bin = build_message(Type, Channel, Json),
  	gen_udp:send(Socket, Ip, Port, Bin),
  	{noreply, State};
  
  handle_cast({set_tcp, Socket, Message, Bins, Cont}, State) ->
  