Artifact 5b8ef386750652f729e44fcf4e5e779c5c9173fc8418dbe9cb203fa46e714f36:
- File
src/OFStreamSocket.h
— part of check-in
[28ea4a8a67]
at
2010-07-07 20:57:04
on branch trunk
— Rename OFSocket to OFStreamSocket.
This is to reflect that it is a connection-based, sequenced, reliable,
two-way byte stream. (user: js, size: 767) [annotate] [blame] [check-ins using]
/* * Copyright (c) 2008 - 2010 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of ObjFW. 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. */ #import "OFStream.h" #ifdef _WIN32 # define _WIN32_WINNT 0x0501 # include <winsock2.h> #endif /** * \brief A class which provides functions to create and use stream sockets. */ @interface OFStreamSocket: OFStream { @public #ifndef _WIN32 int sock; #else SOCKET sock; #endif BOOL listening; @protected BOOL eos; } /** * \return A new autoreleased OFTCPSocket */ + socket; /** * Enables/disables non-blocking I/O. */ - (void)setBlocking: (BOOL)enable; @end