DCL 4.0
Loading...
Searching...
No Matches
Socket Class Reference

#include <Socket.h>

Inheritance diagram for Socket:
PollAble File Object SSLSocket

Protected Member Functions

virtual bool onEvent (short _revents, PollThread *_pPollThread) __DCL_THROWS1(IOException *)
Protected Member Functions inherited from File
 File ()
 File (HandleType _handle, const String &_path)
Protected Member Functions inherited from Object
virtual ~Object ()
 Object ()

Additional Inherited Members

Public Types inherited from File
enum  Whence { BEGIN , CURRENT , END }
Public Member Functions inherited from File
virtual String toString () const
virtual ~File ()
 File (const String &_path, int _oflags=READONLY, int _mode=0666) __DCL_THROWS1(IOException *)
void open (const String &_path, int _oflags=READONLY, int _mode=0666) __DCL_THROWS1(IOException *)
 File (HandleType _handle, int _ohints, bool _closeOnClose) __DCL_THROWS1(IOException *)
void open (HandleType _handle, int _ohints, bool _closeOnClose) __DCL_THROWS1(IOException *)
virtual void sync () __DCL_THROWS1(IOException *)
off_t seek (off_t _offset, int _whence) __DCL_THROWS1(IOException *)
off_t size () const __DCL_THROWS1(IOException *)
DateTime mtime () const __DCL_THROWS1(IOException *)
bool time (time_t *_atime, time_t *_mtime, time_t *_ctime) const
HandleType handle () const
const String & path () const
Public Member Functions inherited from Object
virtual void destroy ()
String className () const
bool isInstanceOf (const std::type_info &typeinfo) const
virtual const std::type_info & typeInfo () const
Static Public Member Functions inherited from File
static FileopenTempFile (const String &_dirname, const String &_prefix, unsigned int _mode=0666) __DCL_THROWS1(IOException *)
Protected Attributes inherited from File
String __path
HandleType __handle
bool __closeOnClose

Detailed Description

소켓에 대한 파일 인터페이스와 Non-Blocking 입출력을 제공한다.

See also
PollThread
SocketPollThread
man tcp

Definition at line 41 of file Socket.h.

Member Function Documentation

◆ onEvent()

bool Socket::onEvent ( short _revents,
PollThread * _pPollThread )
protectedvirtual

Blocking IO를 하는 소켓 인스턴스를 위해 포함한다.

만약 Non-Blocking IO를 위해서는 이것을 override하여야 한다.

Implements PollAble.

Definition at line 591 of file Socket.cpp.

593{
594 // Nothing
595 return true;
596}

The documentation for this class was generated from the following files: