PC SOFT

AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

  • Example: Initializing a read socket
SocketCreate (Example)
Example: Initializing a read socket
WINDEVReports and QueriesJavaUser code (UMC) 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
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario