close method

Closes the port.

void close( )

Closes the port.

After a call to this method any incoming message is silently dropped.