~ubuntu-branches/ubuntu/maverick/postfix/maverick-security

« back to all changes in this revision

Viewing changes to src/util/inet_connect.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Wietse Venema, LaMont Jones
  • Date: 2009-06-03 14:17:08 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603141708-o9u59xlor7nmd2x1
[Wietse Venema]

* New upstream release: 2.6.2~rc1

[LaMont Jones]

* move postfix-add-{filter,policy} manpages to section 8, and deliver
* provide: default-mta on ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
/* SYNOPSIS
7
7
/*      #include <connect.h>
8
8
/*
 
9
/*      int     inet_windowsize;
 
10
/*
9
11
/*      int     inet_connect(addr, block_mode, timeout)
10
12
/*      const char *addr;
11
13
/*      int     block_mode;
14
16
/*      inet_connect connects to a TCP listener at
15
17
/*      the specified address, and returns the resulting file descriptor.
16
18
/*
 
19
/*      Specify an inet_windowsize value > 0 to override the TCP
 
20
/*      window size that the client advertises to the server.
 
21
/*
17
22
/*      Arguments:
18
23
/* .IP addr
19
24
/*      The destination to connect to. The format is host:port. If no
142
147
        return (-1);
143
148
 
144
149
    /*
 
150
     * Window scaling workaround.
 
151
     */
 
152
    if (inet_windowsize > 0)
 
153
        set_inet_windowsize(sock, inet_windowsize);
 
154
 
 
155
    /*
145
156
     * Timed connect.
146
157
     */
147
158
    if (timeout > 0) {