get_sid_ex
Returns the socket ID for a session.
int <protocol>_get_sid_ex ( * session structure );
int ftp_get_sid_ex ( FTP *ppftp );
ftp_get_sid_ex returns the socket ID for a session.
int smtp_get_sid_ex ( SMTP *ppsmtp );
smtp_get_sid_ex returns the socket ID for a session.
int pop3_get_sid_ex ( POP3 *pppop3 );
pop3_get_sid_ex returns the socket ID for a session.
int imap_get_sid_ex ( IMAP *ppimap);
imap_get_sid_ex returns the socket ID for a session.
These functions return the socket ID for a session. On error, they return zero.
If you are not using sessions, use get_sid.