PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

  • Example: Initializing a read socket
SocketCreate (Example)
Example: Initializing a read socket
WINDEVReports and QueriesWindows MobileJavaUser 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment