Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Sockets/Ada/sockets.ada
Normal file
14
Task/Sockets/Ada/sockets.ada
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
with GNAT.Sockets; use GNAT.Sockets;
|
||||
|
||||
procedure Socket_Send is
|
||||
Client : Socket_Type;
|
||||
begin
|
||||
Initialize;
|
||||
Create_Socket (Socket => Client);
|
||||
Connect_Socket (Socket => Client,
|
||||
Server => (Family => Family_Inet,
|
||||
Addr => Inet_Addr ("127.0.0.1"),
|
||||
Port => 256));
|
||||
String'Write (Stream (Client), "hello socket world");
|
||||
Close_Socket (Client);
|
||||
end Socket_Send;
|
||||
Loading…
Add table
Add a link
Reference in a new issue