Working with tcp implementation