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

« back to all changes in this revision

Viewing changes to src/util/inet_listen.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 <listen.h>
8
8
/*
 
9
/*      int     inet_windowsize;
 
10
/*
9
11
/*      int     inet_listen(addr, backlog, block_mode)
10
12
/*      const char *addr;
11
13
/*      int     backlog;
20
22
/*
21
23
/*      inet_accept() accepts a connection and sanitizes error results.
22
24
/*
 
25
/*      Specify an inet_windowsize value > 0 to override the TCP
 
26
/*      window size that the server advertises to the client.
 
27
/*
23
28
/*      Arguments:
24
29
/* .IP addr
25
30
/*      The communication endpoint to listen on. The syntax is "host:port".
152
157
    }
153
158
    freeaddrinfo(res0);
154
159
    non_blocking(sock, block_mode);
 
160
    if (inet_windowsize > 0)
 
161
        set_inet_windowsize(sock, inet_windowsize);
155
162
    if (listen(sock, backlog) < 0)
156
163
        msg_fatal("listen: %m");
157
164
    return (sock);