Показать сообщение отдельно
  #2  
Старый 12.05.2009, 18:43
Аватар для Aristarh Dark
Aristarh Dark Aristarh Dark вне форума
Модератор
 
Регистрация: 07.10.2005
Адрес: Москва
Сообщения: 2,907
Версия Delphi: Delphi XE
Репутация: выкл
По умолчанию

А справку читать Пушкин будет? Ну как дети, чесное слово.
Цитата:
Writes all the information that can be read from the AStream parameter to the socket connection.

Delphi syntax:

Код:
function SendStream(AStream: TStream): Boolean;

C++ syntax:

Код:
bool __fastcall SendStream(Classes::TStream* AStream);

Description

Use SendStream to write to the socket connection. The writing may occur in the OnSocketEvent event handler of a Windows socket object or in the OnWrite or OnClientWrite event handler of a socket component. Alternately, SendStream may write from a socket that is expected to write to the connection without a notification to signal the connection’s readiness to read. SendStream reads information from the stream indicated by AStream and writes it to the socket connection. The value returned by SendStream indicates whether any information was successfully written to the connection.

Note: The Stream passed as a parameter to SendStream becomes ”owned” by the windows socket object. The Windows socket object frees the stream when it is finished with it. Do not attempt to free the stream after it has been passed as a parameter.

ЗЫЖ Подчеркнул я, чтобы акцентировать внимание.
__________________
Некоторые программисты настолько ленивы, что сразу пишут рабочий код.

Если вас наказали ни за что - радуйтесь: вы ни в чем не виноваты.
Ответить с цитированием