~ubuntu-branches/ubuntu/trusty/gnutls26/trusty

« back to all changes in this revision

Viewing changes to doc/examples/tcp.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* This example code is placed in the public domain. */
2
2
 
3
3
#ifdef HAVE_CONFIG_H
4
 
# include <config.h>
 
4
#include <config.h>
5
5
#endif
6
6
 
7
7
#include <stdio.h>
54
54
extern void
55
55
tcp_close (int sd)
56
56
{
57
 
  shutdown (sd, SHUT_RDWR);     /* no more receptions */
 
57
  shutdown (sd, SHUT_RDWR);     /* no more receptions */
58
58
  close (sd);
59
59
}