About 30,000 results
Open links in new tab
  1. TcpClient Class (System.Net.Sockets) | Microsoft Learn

    The TcpClient class provides simple methods for connecting, sending, and receiving stream data over a network in synchronous blocking mode. In order for TcpClient to connect and exchange data, a …

  2. Use TcpClient and TcpListener - .NET | Microsoft Learn

    Learn how to use the TcpClient class to create a socket to request and receive data using TCP in .NET.

  3. TcpClient.Connect Method (System.Net.Sockets) | Microsoft Learn

    'Uses a host name and port number to establish a socket connection. Dim tcpClient As New TcpClient () tcpClient.Connect ("www.contoso.com", 11002) Remarks Call this method to establish a …

  4. How to change the timeout of TcpClient.Connect?

    Feb 18, 2024 · Jiachen Li-MSFT 34,231 • Microsoft External Staff Feb 18, 2024, 7:42 PM Hi @Hong , You can use TcpClient.ConnectAsync Method to control the timeout period.

  5. TcpClient Constructor (System.Net.Sockets) | Microsoft Learn

    This constructor creates a new TcpClient and allows the underlying service provider to assign the most appropriate local IP address and port number. You must first call the Connect method before sending …

  6. 使用 TcpClient 和 TcpListener - .NET | Microsoft Learn

    了解如何在 .NET 中使用 TcpClient 类创建套接字以使用 TCP 请求和接收数据。

  7. TcpClient.Client Property (System.Net.Sockets) | Microsoft Learn

    Classes deriving from TcpClient can use this property to get or set this Socket. Use the underlying Socket returned from Client if you require access beyond that which TcpClient provides.

  8. TcpClient.GetStream Method (System.Net.Sockets)

    ' This method blocks until at least one byte is read. netStream.Read (bytes, 0, CInt (tcpClient.ReceiveBufferSize)) ' Returns the data received from the host to the console.

  9. WebClient/TcpClient slow response on poor/bad connection

    Nov 7, 2023 · To overcome this problem, is there some kind of timeout value to set? Because I'm not familiar with WebClient.DownloadString or TcpClient.GetStream I don't know how to proceed? Any …

  10. TcpClient.LingerState Property (System.Net.Sockets)

    Dim lingerOption As New LingerOption (True, 10) tcpClient.LingerState = lingerOption ' Gets the amount of linger time set, using the LingerOption public property.