Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Sockets/Elena/sockets.elena
Normal file
13
Task/Sockets/Elena/sockets.elena
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import system'net;
|
||||
import system'text;
|
||||
import extensions'text;
|
||||
import system'io;
|
||||
|
||||
public program()
|
||||
{
|
||||
var socket := new Socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
|
||||
socket.connect("127.0.0.1",256);
|
||||
var s := "hello socket world";
|
||||
socket.write(AnsiEncoder.toByteArray(0, s.Length, s));
|
||||
socket.close()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue