File: setnonblock.h

package info (click to toggle)
ctorrent 1.3.4.dnh3.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,116 kB
  • ctags: 1,042
  • sloc: cpp: 10,727; sh: 885; ansic: 383; makefile: 49
file content (17 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef SETNONBLOCK_H
#define SETNONBLOCK_H

#include "./def.h"
#include <sys/types.h>

#ifdef WINDOWS
#include <Winsock2.h>
#else
#include <stdio.h>   // autoconf manual: Darwin + others prereq for stdlib.h
#include <stdlib.h>  // autoconf manual: Darwin prereq for sys/socket.h
#include <sys/socket.h>
#endif

int setfd_nonblock(SOCKET socket);

#endif