System.Net.Socket.TSocket.BeginSendTo

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function BeginSendTo(const S: string; const AsyncCallback: TAsyncCallback; Flags: TSocketFlags = []): IAsyncResult; overload; inline;
function BeginSendTo(const S: string; const Endpoint: TNetEndpoint; const AsyncCallback: TAsyncCallback; Flags: TSocketFlags = []): IAsyncResult; overload;
function BeginSendTo(const B: TBytes; const AsyncCallback: TAsyncCallback; Offset: Integer = 0; Count: Integer = -1; Flags: TSocketFlags = []): IAsyncResult; overload; inline;
function BeginSendTo(const B: TBytes; const Endpoint: TNetEndpoint; const AsyncCallback: TAsyncCallback; Offset: Integer = 0; Count: Integer = -1; Flags: TSocketFlags = []): IAsyncResult; overload;
function BeginSendTo(const S: string; const AsyncCallbackEvent: TAsyncCallbackEvent; Flags: TSocketFlags = []): IAsyncResult; overload; inline;
function BeginSendTo(const S: string; const Endpoint: TNetEndpoint; const AsyncCallbackEvent: TAsyncCallbackEvent; Flags: TSocketFlags = []): IAsyncResult; overload;
function BeginSendTo(const B: TBytes; const AsyncCallbackEvent: TAsyncCallbackEvent; Offset: Integer = 0; Count: Integer = -1; Flags: TSocketFlags = []): IAsyncResult; overload; inline;
function BeginSendTo(const B: TBytes; const Endpoint: TNetEndpoint; const AsyncCallbackEvent: TAsyncCallbackEvent; Offset: Integer = 0; Count: Integer = -1; Flags: TSocketFlags = []): IAsyncResult; overload;
function BeginSendTo(const S: string; Flags: TSocketFlags = []): IAsyncResult; overload; inline;
function BeginSendTo(const S: string; const Endpoint: TNetEndpoint; Flags: TSocketFlags = []): IAsyncResult; overload; inline;
function BeginSendTo(const B: TBytes; Offset: Integer = 0; Count: Integer = -1; Flags: TSocketFlags = []): IAsyncResult; overload; inline;
function BeginSendTo(const B: TBytes; const Endpoint: TNetEndpoint; Offset: Integer = 0; Count: Integer = -1; Flags: TSocketFlags = []): IAsyncResult; overload; inline;

C++

System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::UnicodeString S, const System::Classes::_di_TAsyncCallback AsyncCallback, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::UnicodeString S, const TNetEndpoint &Endpoint, const System::Classes::_di_TAsyncCallback AsyncCallback, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::DynamicArray<System::Byte> B, const System::Classes::_di_TAsyncCallback AsyncCallback, int Offset = 0x0, int Count = 0xffffffff, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::DynamicArray<System::Byte> B, const TNetEndpoint &Endpoint, const System::Classes::_di_TAsyncCallback AsyncCallback, int Offset = 0x0, int Count = 0xffffffff, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::UnicodeString S, const System::Classes::TAsyncProcedureEvent AsyncCallbackEvent, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::UnicodeString S, const TNetEndpoint &Endpoint, const System::Classes::TAsyncProcedureEvent AsyncCallbackEvent, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::DynamicArray<System::Byte> B, const System::Classes::TAsyncProcedureEvent AsyncCallbackEvent, int Offset = 0x0, int Count = 0xffffffff, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::DynamicArray<System::Byte> B, const TNetEndpoint &Endpoint, const System::Classes::TAsyncProcedureEvent AsyncCallbackEvent, int Offset = 0x0, int Count = 0xffffffff, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::UnicodeString S, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::UnicodeString S, const TNetEndpoint &Endpoint, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::DynamicArray<System::Byte> B, int Offset = 0x0, int Count = 0xffffffff, TSocketFlags Flags = TSocketFlags() )/* overload */;
System::Types::_di_IAsyncResult __fastcall BeginSendTo(const System::DynamicArray<System::Byte> B, const TNetEndpoint &Endpoint, int Offset = 0x0, int Count = 0xffffffff, TSocketFlags Flags = TSocketFlags() )/* overload */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket TSocket


Beschreibung

Sendet die angegebenen Daten asynchron an den festgelegten Endpunkt.

Wenn Sie BeginSendTo aufrufen, wird unverzüglich eine Instanz einer Klasse zurückgegeben, die das Interface IAsyncResult implementiert.

Sie können an BeginSendTo die folgenden Parameter übergeben:

  • Einen zu sendenden String (S) oder ein Bye-Array (B).
  • AsyncCallbackEvent: Eine Ereignisbehandlungsroutine mit dem Typ TAsyncCallbackEvent, die aufgerufen wird, sobald die angegebenen Daten gesendet werden.
  • AsyncCallback: Eine Methode mit dem Typ TAsyncCallback, die aufgerufen wird, sobald die angegebenen Daten gesendet werden.
  • Offset: Eine Anzahl von Bytes, die am Beginn der zu sendenden Daten übersprungen werden sollen (nur wenn Sie ein Byte-Array senden).
  • Count: Die maximale Länge der zu sendenden Daten (nur wenn Sie ein Byte-Array senden).
  • Flags ist ein Flag-Satz, der das Verhalten von Send beeinflusst. Weitere Informationen finden Sie in der Dokumentation der Funktion send auf der MSDN-Website.

Übergeben Sie, sobald Ihre Callback-Ereignisbehandlungsroutine oder -Methode aufgerufen wird, die zurückgegebene Instanz einer Klasse, die das Interface IAsyncResult implementiert, an EndSendTo, um die eingehende Verbindung zu akzeptieren.

Siehe auch