Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Sockets/Visual-Basic-.NET/sockets.vb
Normal file
15
Task/Sockets/Visual-Basic-.NET/sockets.vb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Imports System
|
||||
Imports System.IO
|
||||
Imports System.Net.Sockets
|
||||
|
||||
Public Class Program
|
||||
Public Shared Sub Main(ByVal args As String[])
|
||||
Dim tcp As New TcpClient("localhost", 256)
|
||||
Dim writer As New StreamWriter(tcp.GetStream())
|
||||
|
||||
writer.Write("hello socket world")
|
||||
writer.Flush()
|
||||
|
||||
tcp.Close()
|
||||
End Sub
|
||||
End Class
|
||||
Loading…
Add table
Add a link
Reference in a new issue