Logo Search packages:      
Sourcecode: icomlib version File versions  Download package

PComm::PCClose (  ) 

Closes the currently active file descriptor.

Used in conjunction with PCOpen(...) so that you can release and regain the socket after an initialization procedure.

Definition at line 173 of file pcomm.cpp.

References fd, FDSet, newtio, oldtio, and timeOut.

Referenced by PCP::PCPSetPort(), resetCall(), and ~PComm().

{
    close(fd);

    /* restore the old port settings */
    tcsetattr(fd,TCSANOW,oldtio);
    delete oldtio;
    delete newtio;

    FD_ZERO(FDSet);
    delete FDSet;
    delete timeOut;   

}


Generated by  Doxygen 1.6.0   Back to index