]> git.saurik.com Git - wxWidgets.git/blame - include/wx/sckstrm.h
removed wxUSE_MENU_CALLBACK references: the code inside the #if couldn't compile...
[wxWidgets.git] / include / wx / sckstrm.h
CommitLineData
f4ada568
GL
1/////////////////////////////////////////////////////////////////////////////
2// Name: sckstrm.h
3// Purpose: wxSocket*Stream
4// Author: Guilhem Lavaux
5// Modified by:
6// Created: 17/07/97
7// RCS-ID: $Id$
8// Copyright: (c)
65571936 9// Licence: wxWindows licence
f4ada568
GL
10/////////////////////////////////////////////////////////////////////////////
11#ifndef __SCK_STREAM_H__
12#define __SCK_STREAM_H__
13
12028905 14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
f4ada568
GL
15#pragma interface
16#endif
17
18#include "wx/stream.h"
ce4169a4
RR
19
20#if wxUSE_SOCKETS && wxUSE_STREAMS
21
f4ada568
GL
22#include "wx/socket.h"
23
7c4728f6 24class WXDLLIMPEXP_NET wxSocketOutputStream : public wxOutputStream
f4ada568
GL
25{
26 public:
27 wxSocketOutputStream(wxSocketBase& s);
75ed1d15 28 ~wxSocketOutputStream();
f4ada568 29
4004775e 30 wxFileOffset SeekO( wxFileOffset WXUNUSED(pos), wxSeekMode WXUNUSED(mode) )
e22036dc 31 { return -1; }
4004775e 32 wxFileOffset TellO() const
e22036dc 33 { return -1; }
f4ada568 34
f4ada568
GL
35 protected:
36 wxSocketBase *m_o_socket;
375abe3d
GL
37
38 size_t OnSysWrite(const void *buffer, size_t bufsize);
22f3361e
VZ
39
40 DECLARE_NO_COPY_CLASS(wxSocketOutputStream)
f4ada568
GL
41};
42
7c4728f6 43class WXDLLIMPEXP_NET wxSocketInputStream : public wxInputStream
f4ada568
GL
44{
45 public:
46 wxSocketInputStream(wxSocketBase& s);
47 ~wxSocketInputStream();
48
4004775e 49 wxFileOffset SeekI( wxFileOffset WXUNUSED(pos), wxSeekMode WXUNUSED(mode) )
e22036dc 50 { return -1; }
4004775e 51 wxFileOffset TellI() const
e22036dc 52 { return -1; }
f4ada568 53
f4ada568
GL
54 protected:
55 wxSocketBase *m_i_socket;
375abe3d
GL
56
57 size_t OnSysRead(void *buffer, size_t bufsize);
22f3361e
VZ
58
59 DECLARE_NO_COPY_CLASS(wxSocketInputStream)
f4ada568
GL
60};
61
7c4728f6 62class WXDLLIMPEXP_NET wxSocketStream : public wxSocketInputStream,
1777b9bb 63 public wxSocketOutputStream
75ed1d15 64{
f4ada568 65 public:
f4ada568 66 wxSocketStream(wxSocketBase& s);
75ed1d15 67 ~wxSocketStream();
fc7a2a60
VZ
68
69 DECLARE_NO_COPY_CLASS(wxSocketStream)
f4ada568
GL
70};
71
72#endif
ce4169a4
RR
73 // wxUSE_SOCKETS && wxUSE_STREAMS
74
75#endif
a324a7bc 76 // __SCK_STREAM_H__