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

ssize_t fd_getc ( servinfo_t serverinfo,
char *  c 
)

Gets a character from a socket.

Parameters:
serverinfo A pointer to a servinfo_t structure with the needed info
c A pointer where it'll store what was read from the socket
Returns:
What read (or SSL_read) returns

Definition at line 46 of file fdutil.c.

References servinfo::sockfd.

Referenced by fd_gets().

{
#ifdef HAVE_SSL
      if (serverinfo->use_tls==True && serverinfo->using_tls==True)
      {
            return(SSL_read(serverinfo->ssl,c,1));
      }
#endif
      return(read(serverinfo->sockfd,c,1));
}


Generated by  Doxygen 1.6.0   Back to index