Transmission Control Protocol (TCP) is a transport layer protocol that provides a connection-oriented data stream service with guaranteed, in-order delivery.

learn more… | top users | synonyms

2
votes
0answers
75 views

Latency problem for keyboard remoting from Android phone - follow on [closed]

This is a follow on question to these previous questions: Both TCP and UDP implementations Modified TCP-only solution I'm writing a simple remote PC app (mouse-keyboard). Android is the client and ...
5
votes
3answers
138 views

Latency problem for keyboard remoting from Android phone - follow up

I'm writing a simple remote PC app (mouse-keyboard). Android is the client and is connected with WiFi to Java PC Server. I'm using TCP but I see a bit of latency compared to other remote apps. I'm ...
7
votes
1answer
138 views

Latency problem for keyboard remoting from Android phone

I'm writing a simple remote PC app (mouse-keyboard). Android is client and is connect with WiFi to Java PC Server. I'm using TCP but I see a bit of latency compared to other remote apps. Then I used ...
3
votes
1answer
148 views

Is this the right way to use TcpListener in the background?

I have a server application using TcpListener in BackgroundWorker, where my application is doing some work, and in the ...
3
votes
1answer
570 views

Basic TCP server application in C# using async / await [closed]

I'm trying to get started with network and parallel programming in C#. I'm almost a complete novice in programming, so I'm looking for feedback on a small script I'm writing. The goal of the ...
3
votes
2answers
131 views

Peer Review of TCP Client Program Code

I'd like to have this code looked over because I feel my approach might be very novice and there must have to be a more elegant or at least less "grunt-work" way of doing it. I have to write a small ...
1
vote
1answer
2k views

WPF async await TcpClient/TcpListener sample

I want to build a robust and highly scalable client server system. Here what I have so far(an echo server as my base of implementation) My Server ...
5
votes
1answer
1k views

Performant C# Socket server

I am creating a performant C# socket server. I'd like it to be able to accept as many simultaneous connections as possible. I've tested with 100 clients and all clients are fine. With 1000 however, ...
2
votes
3answers
864 views

Is this good way to detect socket disconnect in .net

First off, I know there are other solutions and practices but I'm referring to MS proposed code from .NET documentation. It goes like this: ...
4
votes
2answers
1k views

Which is fastest: Write to Stream or BinaryWriter?

I've noticed that there are several ways of sending data through a TCP stream. I want to do it the fastest way in terms of latency. One method I became aware of is with a binary writer: ...
5
votes
2answers
9k views

C# Console Chat Server - Async/Await, TcpClient/TcpListener, NetworkStream (async)

Just looking for feedback on correctness of my understanding of async/await. Curious about the Task.Run inside of the StartReceive() method. Resharper (or maybe just the compiler) warns against ...
1
vote
0answers
707 views

Transmitting/Sending big packet safely using TcpClient/Socket

I am writing a TCP based client that need to send and receive data. I have used the Asynchronous Programming Model (APM) provided for Socket class by the .NET ...
3
votes
2answers
3k views

Multithreaded Socket code to connect to 100 different machines

This is my socket.cpp ...
5
votes
2answers
631 views

TCP socket server for UNIX

I'm very new to C++, but I really want to write good code and increase my development skill, so I ask you for some review. Scheme of socket server This is the scheme of how my socket server works. ...
6
votes
1answer
4k views

Stupidly simple TCP client/server

I'm trying to validate some results that I see when using NetPipe to test some connectivity between a couple of Linux boxes (over various hardware). So, I concocted this simple client and server to do ...
2
votes
2answers
881 views

TCP/IP sending and receiving threads

It's my first stab at TCP/IP and honestly I'm just starting out on C# also, so any comments on the design, method, etc are more than welcome. Basically I wanted to create a listening thread and ...
11
votes
4answers
16k views

TCP Socket Server

I've only been coding C# a few weeks and was just hoping for a little constructive criticism of a socket server I've been working on: ...