Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Sockets/Fantom/sockets.fantom
Normal file
14
Task/Sockets/Fantom/sockets.fantom
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using inet
|
||||
|
||||
class Socket
|
||||
{
|
||||
public static Void main ()
|
||||
{
|
||||
sock := TcpSocket()
|
||||
sock.connect(IpAddr("localhost"), 256)
|
||||
|
||||
sock.out.printLine("hello socket world")
|
||||
sock.out.flush
|
||||
sock.close
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue