Function EN Version 4.60

@IPOpenSendSocket

Internet

Syntax

@IPOpenSendSocket(SERVER1;PORT2;PROTOCOL3);

Description

Currently available for Windows only!!!

Opens an outgoing IP connection to server TEXT SERVER1, FN PORT2 und dem Protokoll TEXT PROCOTCOL3 und gibt einen IPSOCKET. If the requested communication endpoint (port) is not available, the result is an @ERROR-Wert.

PROTOCOL3:
UDP      UDP connection (datagrams, connectionless, broadcast-capable, delivery not guaranteed)
TCP      TCP-Verbindung (streaming data, connection-oriented)

Example: @IPOpenSendSocket(SERVER1;PORT2;PROTOCOL3);

SERVER1:="172.16.1.200";
PORT2:=80;
PROTOCOL3:="TCP";
ConSocket:=@IPOpenSendSocket(SERVER1;PORT2;PROTOCOL3);
IF(@GetDataType(ConSocket)="IPS")
{
   TEXT2:="Zu Sendender Text";
   Ret:=@IPSend(ConSocket;TEXT2);
   ConSocket:=@IPCloseSocket(ConSocket);
}

A sending IPSOCKET ConSocket is opened, the TEXT2 an den Server versandt, und der sendende IPSOCKET ConSocket is also closed again.

Note : This text was machine-translated and may contain inaccuracies.