Update Layers.cs

adding sending tcp logic