21 #ifndef GNASH_SOCKET_H 22 #define GNASH_SOCKET_H 59 bool connect(
const std::string& hostname, std::uint16_t port);
72 bool connected()
const;
79 virtual bool bad()
const {
85 virtual std::streamsize read(
void* dst, std::streamsize num);
88 virtual std::streamsize readNonBlocking(
void* dst, std::streamsize num);
96 virtual std::streamsize
write(
const void* src, std::streamsize num);
101 virtual std::streampos tell()
const;
106 virtual bool seek(std::streampos
p);
111 virtual void go_to_end();
118 virtual bool eof()
const;
125 mutable bool _connected;
144 #endif // GNASH_IOCHANNEL_H
A virtual IO channel.
Definition: IOChannel.h:42
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
A simple IOChannel subclass for reading and writing sockets.
Definition: Socket.h:41
virtual ~Socket()
Definition: Socket.h:48
#define DSOEXPORT
Definition: dsodefs.h:55
Definition: GnashKey.h:162
virtual bool bad() const
True if the Socket is in an error condition.
Definition: Socket.h:79