AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Área de texto enriquecido
  • Example: Initializing a read socket
SocketCreate (Example)
Example: Initializing a read socket
WINDEVJavaCódigo de Usuario (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
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local