~ubuntu-branches/ubuntu/quantal/gnutls26/quantal-security

« back to all changes in this revision

Viewing changes to doc/examples/ex-serv-pgp.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
  sa_serv.sin_addr.s_addr = INADDR_ANY;
109
109
  sa_serv.sin_port = htons (PORT);      /* Server Port number */
110
110
 
111
 
  setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
 
111
  setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval,
 
112
              sizeof (int));
112
113
 
113
114
  err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
114
115
  SOCKET_ERR (err, "bind");
150
151
 
151
152
          if (ret == 0)
152
153
            {
153
 
              printf ("\n- Peer has closed the GNUTLS connection\n");
 
154
              printf ("\n- Peer has closed the GnuTLS connection\n");
154
155
              break;
155
156
            }
156
157
          else if (ret < 0)