Commit 6e55ac7a by Thomas Quinot Committed by Arnaud Charlet

g-socket.ads (Send_Socket): Fix misleading comment.

2009-04-20  Thomas Quinot  <quinot@adacore.com>

	* g-socket.ads (Send_Socket): Fix misleading comment.

From-SVN: r146384
parent 566fef1d
2009-04-20 Thomas Quinot <quinot@adacore.com>
* g-socket.ads (Send_Socket): Fix misleading comment.
2009-04-20 Arnaud Charlet <charlet@adacore.com> 2009-04-20 Arnaud Charlet <charlet@adacore.com>
* switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
...@@ -935,10 +935,9 @@ package GNAT.Sockets is ...@@ -935,10 +935,9 @@ package GNAT.Sockets is
Item : Ada.Streams.Stream_Element_Array; Item : Ada.Streams.Stream_Element_Array;
Last : out Ada.Streams.Stream_Element_Offset; Last : out Ada.Streams.Stream_Element_Offset;
Flags : Request_Flag_Type := No_Request_Flag); Flags : Request_Flag_Type := No_Request_Flag);
-- Transmit a message over a socket. Note that Last is set to -- Transmit a message over a socket. Upon return, Last is set to the index
-- Item'First-1 when socket has been closed by peer. This is not -- within Item of the last element transmitted. Flags allows to control
-- considered an error and no exception is raised. Flags allows to control -- the transmission. Raises Socket_Error on any detected error condition.
-- the transmission. Raises Socket_Error on any other error condition.
procedure Send_Socket procedure Send_Socket
(Socket : Socket_Type; (Socket : Socket_Type;
...@@ -975,14 +974,13 @@ package GNAT.Sockets is ...@@ -975,14 +974,13 @@ package GNAT.Sockets is
-- Same interface as Ada.Streams.Stream_IO -- Same interface as Ada.Streams.Stream_IO
function Stream (Socket : Socket_Type) return Stream_Access; function Stream (Socket : Socket_Type) return Stream_Access;
-- Create a stream associated with a stream-based socket that is -- Create a stream associated with an already connected stream-based socket
-- already connected.
function Stream function Stream
(Socket : Socket_Type; (Socket : Socket_Type;
Send_To : Sock_Addr_Type) return Stream_Access; Send_To : Sock_Addr_Type) return Stream_Access;
-- Create a stream associated with a datagram-based socket that is already -- Create a stream associated with an already bound datagram-based socket.
-- bound. Send_To is the socket address to which messages are being sent. -- Send_To is the destination address to which messages are being sent.
function Get_Address function Get_Address
(Stream : not null Stream_Access) return Sock_Addr_Type; (Stream : not null Stream_Access) return Sock_Addr_Type;
...@@ -996,9 +994,10 @@ package GNAT.Sockets is ...@@ -996,9 +994,10 @@ package GNAT.Sockets is
type Socket_Set_Type is limited private; type Socket_Set_Type is limited private;
-- This type allows to manipulate sets of sockets. It allows to wait for -- This type allows to manipulate sets of sockets. It allows to wait for
-- events on multiple endpoints at one time. This type used to contain -- events on multiple endpoints at one time.
-- a pointer to dynamically allocated storage, but this is not the case -- Note: This type used to contain a pointer to dynamically allocated
-- anymore, and no special precautions are required to avoid memory leaks. -- storage, but this is not the case anymore, and no special precautions
-- are required to avoid memory leaks.
procedure Clear (Item : in out Socket_Set_Type; Socket : Socket_Type); procedure Clear (Item : in out Socket_Set_Type; Socket : Socket_Type);
-- Remove Socket from Item -- Remove Socket from Item
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment