#endif /* INET6 */
}
- if ((ctl->smtp_socket = SockOpen(parsed_host,portnum)) == -1)
+ if ((ctl->smtp_socket = SockOpen(parsed_host,portnum,NULL)) == -1)
continue;
/* first, probe for ESMTP */
ctl->smtp_socket = -1;
/* if opening for ESMTP failed, try SMTP */
- if ((ctl->smtp_socket = SockOpen(parsed_host,portnum)) == -1)
+ if ((ctl->smtp_socket = SockOpen(parsed_host,portnum,NULL)) == -1)
continue;
if (SMTP_ok(ctl->smtp_socket) == SM_OK &&
ctl->server.service ? ctl->server.service : protocol->service,
ctl->server.netsec)) == -1)
#else /* INET6 */
- if ((sock = SockOpen(realhost, port)) == -1)
+ if ((sock = SockOpen(realhost, port, NULL)) == -1)
#endif /* INET6 */
{
#if !INET6
#endif
#endif /* INET_ATON */
-int SockOpen(const char *host, int clientPort)
+int SockOpen(const char *host, int clientPort, const char *options)
{
int sock;
#ifndef INET_ATON
*/
main()
{
- int sock = SockOpen("localhost", 19);
+ int sock = SockOpen("localhost", 19, NULL);
char buf[80];
while (SockRead(sock, buf, sizeof(buf)-1))
#if INET6
int SockOpen(const char *host, const char *service, const char *options);
#else /* INET6 */
-int SockOpen(const char *host, int clientPort);
+int SockOpen(const char *host, int clientPort, const char *options);
#endif /* INET6 */
/*