Serial Framework C++ Edition

◆ Close()

int Close ( )

The method disconnects all connected clients and closes the server.

Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The method must be called from the same thread that called the Listen method. The method is not thread-safe.