/* * Copyright (c) 2008 - 2009 * Jonathan Schleifer * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ /* * Headers for UNIX systems */ #ifndef _WIN32 #include #include #include #endif #import "OFStream.h" /* * Headers for Win32 * * These must be imported after objc/Object and thus OFObject! */ #ifdef _WIN32 #define _WIN32_WINNT 0x0501 #include #include #endif /** * The OFTCPSocket class provides functions to create and use sockets. */ @interface OFSocket: OFStream { #ifndef _WIN32 int sock; #else SOCKET sock; #endif struct sockaddr *saddr; socklen_t saddr_len; } /** * Enables/disables non-blocking I/O. */ - setBlocking: (BOOL)enable; @end