mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-01 19:11:08 +01:00
d14efe561b
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
76 lines
1.9 KiB
C++
76 lines
1.9 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/sckstrm.h
|
|
// Purpose: wxSocket*Stream
|
|
// Author: Guilhem Lavaux
|
|
// Modified by:
|
|
// Created: 17/07/97
|
|
// RCS-ID: $Id: sckstrm.h 67254 2011-03-20 00:14:35Z DS $
|
|
// Copyright: (c)
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#ifndef __SCK_STREAM_H__
|
|
#define __SCK_STREAM_H__
|
|
|
|
#include "wx/stream.h"
|
|
|
|
#if wxUSE_SOCKETS && wxUSE_STREAMS
|
|
|
|
#include "wx/socket.h"
|
|
|
|
class WXDLLIMPEXP_NET wxSocketOutputStream : public wxOutputStream
|
|
{
|
|
public:
|
|
wxSocketOutputStream(wxSocketBase& s);
|
|
virtual ~wxSocketOutputStream();
|
|
|
|
protected:
|
|
wxSocketBase *m_o_socket;
|
|
|
|
size_t OnSysWrite(const void *buffer, size_t bufsize);
|
|
|
|
// socket streams are both un-seekable and size-less streams:
|
|
wxFileOffset OnSysTell() const
|
|
{ return wxInvalidOffset; }
|
|
wxFileOffset OnSysSeek(wxFileOffset WXUNUSED(pos), wxSeekMode WXUNUSED(mode))
|
|
{ return wxInvalidOffset; }
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxSocketOutputStream);
|
|
};
|
|
|
|
class WXDLLIMPEXP_NET wxSocketInputStream : public wxInputStream
|
|
{
|
|
public:
|
|
wxSocketInputStream(wxSocketBase& s);
|
|
virtual ~wxSocketInputStream();
|
|
|
|
protected:
|
|
wxSocketBase *m_i_socket;
|
|
|
|
size_t OnSysRead(void *buffer, size_t bufsize);
|
|
|
|
// socket streams are both un-seekable and size-less streams:
|
|
|
|
wxFileOffset OnSysTell() const
|
|
{ return wxInvalidOffset; }
|
|
wxFileOffset OnSysSeek(wxFileOffset WXUNUSED(pos), wxSeekMode WXUNUSED(mode))
|
|
{ return wxInvalidOffset; }
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxSocketInputStream);
|
|
};
|
|
|
|
class WXDLLIMPEXP_NET wxSocketStream : public wxSocketInputStream,
|
|
public wxSocketOutputStream
|
|
{
|
|
public:
|
|
wxSocketStream(wxSocketBase& s);
|
|
virtual ~wxSocketStream();
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxSocketStream);
|
|
};
|
|
|
|
#endif
|
|
// wxUSE_SOCKETS && wxUSE_STREAMS
|
|
|
|
#endif
|
|
// __SCK_STREAM_H__
|