ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Example: Initializing a read socket
SocketCreate (Example)
Example: Initializing a read socket
Reports and Queries In the following example, a socket is created in order to read the instant messages.
CONSTANT
// Name of the sockets used
csNameReadSocket = "SocketRead" // Socket for reading messages
// Numbers of the ports associated with the sockets
cnPortReadSocket = 5012 // Port associated with csNameReadSocket
// Socket for reading messages

IF SocketCreate(csNameReadSocket, cnPortReadSocket) = False THEN
// Error while creating the socket
Error("Unable to create the read socket", ErrorInfo())
// This application cannot operate without this socket
EndProgram()
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help