title: TCP support in Azure IoT Hub
body: <p>Azure IoT Hub Supports AMQP, MQTT, HTTP protocols. In order to customize these protocols we have Azure IoT protocol gateway. I can find good samples on MQTT protocol customization. I need some sample codes for TCP based protocol customization using Azure IoT Protocol Gateway.</p>
  
  <p><strong>EDIT (in order to get an answer):</strong> what the OP was asking, is an example using the Azure Protocol Gateway <strong>to support a proprietary TCP-based protocol</strong>. Currently the IoT hub only supports AMQP, MQTT and HTTP. While those protocols actually rely on TCP, the hub doesn't support direct TCP connection without the extra layer of AMQP, MQTT or HTTP.
  As explained <a href="https://github.com/Azure/azure-iot-protocol-gateway/issues/44" rel="noreferrer">here</a>, we need a basic example of a custom TCP based protocol.</p>
  
  <p>Imagine a basic device that can only send some proprietary payload through TCP on a given IP address/port: we need an example of a gateway customization that allows this device to send data to the hub.</p>
  
  <p>The current code of the protocol gateway is poorly designed, as it heavily relies on MQTT.</p>
  
  <p>Adding some bounty too.</p>