Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
8
Task/Sockets/F-Sharp/sockets.fs
Normal file
8
Task/Sockets/F-Sharp/sockets.fs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
open System.Text
|
||||
open System.Net.Sockets
|
||||
|
||||
let sock =
|
||||
new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
|
||||
sock.Connect("127.0.0.1", 256)
|
||||
sock.Send(Encoding.UTF8.GetBytes "hello socket world")
|
||||
sock.Close
|
||||
Loading…
Add table
Add a link
Reference in a new issue