The open and close functions query which communications ports a port driver supports and in what manner, as well as opening and closing communications ports.