|
|
|
|
|
- Example: Reading messages in a thread
Example: Reading messages in a thread The following code corresponds to the code run by a thread for receiving the messages sent to a socket. sMessage is Buffer // Message being received // Permanently wait for the messages with locking listening LOOP // Read the messages asking for connection (locking operation) sMessage = SocketRead(csSocketRequestName, False, 50) // Is the message a connection request IF sMessage ~= csREQ THEN // Inform the user Message("A connection request was received") // Listen to the request ListenStartMessageRequest() // Clear the content of the status bar Message("") END END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|