4D Internet Commands v16Low Level Routines, Overview |
||
|
4D Internet Commands v16
Low Level Routines, Overview
Low Level Routines, Overview
TCP/IP or Transmission Control Protocol/Internet Protocol, is the primary protocol used for sending data over the internet. The TCP commands included with 4D Internet Commands allow developers to establish TCP session and send and receive TCP packets via these sessions. There are two ways to establish a TCP connection. The first way is to execute the TCP_Open command. This will open a connection with the domain specified on the specified port. TCP_Open allows the use of SSL (Secured Socket Layer) protocol which permits a secured connection. The other way to open a connection is to execute the TCP_Listen command. This command will open a connection with the specified domain on the specified port, and will listen for an incoming connection. The best way to determine if a connection has been established is to check the state of the session with the command TCP_State upon completion of the TCP_Listen command. A status code will be returned which will correspond to the current state of the session. From here you can send and/or receive TCP packets as you could with a connection established with TCP_Open. In any case, any TCP connection opened must be closed subsequently using the TCP_Close command. The low-level TCP/IP commands require advanced knowledge about the protocols of communication. Developers using these routines should have a complete understanding of any protocol they attempt to implement. Information about the various TCP/IP assigned port numbers, communication protocols, addressing requirements, etc. can be found in the RFCs. 4D Internet commands allow the passing of POP3, IMAP or FTP connection references directly to low-level TCP commands and vice versa. In this example, the IMAP_Capability command is replaced by an equivalent function developed using TCP_IP commands.
$ErrorNum:=IMAP_Login(vHost;vUserName;vUserPassword;vImap_ID)
$ErrorNum:=IMAP_Login(vHost;vUserName;vUserPassword;vImap_ID)
C_LONGINT($1;$vErrorNum;$0)
|
EIGENSCHAFTEN
Produkt: 4D Internet Commands
GESCHICHTE
ARTIKELVERWENDUNG
4D Internet Commands ( 4D Internet Commands v16) |