Created
April 25, 2017 00:49
-
-
Save mushfiqweb/96fc3137cb1e4681308e6dcf46058fba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Socket socket = tcpClient.Client; | |
string str = "Hello world!"; | |
try | |
{ // sends the text with timeout 10s | |
MyClass.Send(socket, Encoding.UTF8.GetBytes(str), 0, str.Length, 10000); | |
} | |
catch (Exception ex) { /* ... */ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment