tagged [tcp]
How many socket connections can a web server handle?
How many socket connections can a web server handle? Say if I was to get shared, virtual or dedicated hosting, I read somewhere a server/machine can only handle 64,000 TCP connections at one time, is ...
- Modified
- 29 Jan at 05:50
What is SOCK_DGRAM and SOCK_STREAM?
What is SOCK_DGRAM and SOCK_STREAM? I just came across this strange thing I got to see application is that by default they use `SOCK_STREAM` function. Why is it so? Is this `SOCK_STREAM` just creating...
C# ssl/tls with socket tcp
C# ssl/tls with socket tcp I am new in C# development. I am trying to use ssl/tls over tcp but in my code, system.net.sockets.socket (bare socket) is used not tcpclient or tcplistner. I have searched ...
How to get all data from NetworkStream
How to get all data from NetworkStream I am trying to read all data present in the buffer of the Machine connected through `TCP/IP` but i don't know why i am not getting all data ,some data is getting...
- Modified
- 26 Sep at 11:36
TCP: can two different sockets share a port?
TCP: can two different sockets share a port? This might be a very basic question but it confuses me. Can two different connected sockets share a port? I'm writing an application server that should be ...
- Modified
- 2 Sep at 09:36
Is there any cross-platform library for accepted TCP connections interprocess exchange?
Is there any cross-platform library for accepted TCP connections interprocess exchange? Any Boost like ones? Or any other Windows, Mac, Linux library's for passing established TCP connection from one ...
- Modified
- 23 May at 12:26
Find the next TCP port in .NET
Find the next TCP port in .NET I want to create a new net.tcp://localhost:x/Service endpoint for a WCF service call, with a dynamically assigned new open TCP port. I know that TcpClient will assign a ...
- Modified
- 9 Apr at 19:25
Creating a TCP Client Connection with SSL
Creating a TCP Client Connection with SSL I'm trying to create a TCP connection and send/read data that uses SSL, but I haven't been able to successfully accomplish this. What I'd like to do is someth...
Detect socket disconnect in WCF
Detect socket disconnect in WCF We're building a WCF server (.NET 4.0). It will only use net.tcp transport. When a client closes the TCP connection, the server gets unhandled CommunicationException, a...
TCP Hole Punch (NAT Traversal) Library or something?
TCP Hole Punch (NAT Traversal) Library or something? I want to do TCP Hole Punching (NAT Traversal) in C#. It can be done with a rendezvous server if needed. I found [http://sharpstunt.codeplex.com/](...
How to check remote IP and Port is available?
How to check remote IP and Port is available? I have to check remote IP and Port is available or not.If its is available it will move to next form.If not available it should come to the initial state....
- Modified
- 29 Jul at 09:45
Adding SSL to TcpListen server?
Adding SSL to TcpListen server? I have made a simple server using TcpListener and it works great but now I would like the connection to be secure. The clients that connect would be web servers so does...
- Modified
- 6 Jun at 17:7
Manualy choose an interface on TCP to send data
Manualy choose an interface on TCP to send data I have a TCP server that is listening on a particular interface only. I want that after the `accept()` call if the incoming connection was from `xxx.xxx...
- Modified
- 17 Jan at 19:36
How to check the availability of a net.tcp WCF service
How to check the availability of a net.tcp WCF service My WCF server needs to go up and down on a regular basis, the client sometimes uses the server, but if it is down the client just ignore it. So e...
KeepAlive with WCF and TCP?
KeepAlive with WCF and TCP? I have a Windows Service hosting an advanced WCF service that communicates over TCP(netTCP) with protobuf.net, some times also with certificates. The is set to infinite to ...
- Modified
- 7 Nov at 07:49
Instantly detect client disconnection from server socket
Instantly detect client disconnection from server socket How can I detect that a client has disconnected from my server? I have the following code in my `AcceptCallBack` method I need to find
- Modified
- 8 May at 13:28
What is the theoretical maximum number of open TCP connections that a modern Linux box can have
What is the theoretical maximum number of open TCP connections that a modern Linux box can have Assuming infinite performance from hardware, can a Linux box support >65536 open TCP connections? I unde...
- Modified
- 31 Jan at 17:16
When is "java.io.IOException:Connection reset by peer" thrown?
When is "java.io.IOException:Connection reset by peer" thrown? ``` ERROR GServerHandler - java.io.IOException: Connection reset by peer java.io.IOException: Connection reset by peer at sun.nio.ch....
- Modified
- 13 Dec at 04:22
Differences between TCP sockets and web sockets, one more time
Differences between TCP sockets and web sockets, one more time Trying to understand as best as I can the differences between TCP socket and websocket, I've already found a lot of useful information wi...
What causes a TCP/IP reset (RST) flag to be sent?
What causes a TCP/IP reset (RST) flag to be sent? I'm trying to figure out why my app's TCP/IP connection keeps hiccuping every 10 minutes (exactly, within 1-2 seconds). I ran Wireshark and discovered...
- Modified
- 30 Oct at 18:40
Do TCP sockets automatically close after some time if no data is sent?
Do TCP sockets automatically close after some time if no data is sent? I have a client server situation where the client opens a TCP socket to the server, and sometimes long periods of time will pass ...
- Modified
- 30 Jul at 18:12
Performance of ReceiveAsync vs. BeginReceive
Performance of ReceiveAsync vs. BeginReceive I'm currently programming a client application and I'm wondering whether I should use the Socket class' ReceiveAsync or BeginReceive method. I have been us...
- Modified
- 28 Mar at 20:36
How to properly and completely close/reset a TcpClient connection?
How to properly and completely close/reset a TcpClient connection? What is the correct way to close or reset a TcpClient connection? We have software that communicates with hardware but sometimes some...
High performance TCP server in C#
High performance TCP server in C# I am an experienced C# developer, but I have not developed a TCP server application so far. Now I have to develop a highly scalable and high performance server that c...