~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to snmplib/winpipe.c

  • Committer: Bazaar Package Importer
  • Author(s): Jochen Friedrich
  • Date: 2010-06-10 18:02:54 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100610180254-6ezvupl2clicwdqf
ImportĀ upstreamĀ versionĀ 5.4.3~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#ifdef WIN32
34
34
 
 
35
#include <net-snmp/net-snmp-config.h>
 
36
#include <net-snmp/library/snmp_assert.h>
35
37
#include <io.h>
36
38
#include <winsock.h>
37
39
 
42
44
 
43
45
        if( (*sock = socket(AF_INET, SOCK_DGRAM, 0)) == SOCKET_ERROR)
44
46
        {
 
47
                netsnmp_assert(GetLastError() != WSANOTINITIALISED);
45
48
                return -1;
46
49
        }
47
50
        socketaddress->sin_family = AF_INET;