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

« back to all changes in this revision

Viewing changes to doc/examples/ex-serv-anon.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:
94
94
  sa_serv.sin_addr.s_addr = INADDR_ANY;
95
95
  sa_serv.sin_port = htons (PORT);      /* Server Port number */
96
96
 
97
 
  setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval, sizeof (int));
 
97
  setsockopt (listen_sd, SOL_SOCKET, SO_REUSEADDR, (void *) &optval,
 
98
              sizeof (int));
98
99
 
99
100
  err = bind (listen_sd, (SA *) & sa_serv, sizeof (sa_serv));
100
101
  SOCKET_ERR (err, "bind");
136
137
 
137
138
          if (ret == 0)
138
139
            {
139
 
              printf ("\n- Peer has closed the GNUTLS connection\n");
 
140
              printf ("\n- Peer has closed the GnuTLS connection\n");
140
141
              break;
141
142
            }
142
143
          else if (ret < 0)