Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ソケットを使用して TCP サーバーに接続しています。ただし、接続しようとすると、プログラム全体がフリーズします。プログラムがフリーズせずに接続を試みるようにするにはどうすればよいですか?
それが私の接続コードです。
_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); try { _socket.Connect(IP, Port); }