3 This file is part of libmspnet
4 Copyright © 2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
8 #ifndef MSP_NET_STREAMSOCKET_H_
9 #define MSP_NET_STREAMSOCKET_H_
16 class StreamSocket: public Socket
18 friend class StreamListenSocket;
24 Emitted when the socket finishes connecting. The argument is a standard
25 error code, 0 indicating success.
27 sigc::signal<void, int> signal_connect_finished;
30 StreamSocket(SocketHandle, const SockAddr &);
32 StreamSocket(Family, int =0);
34 bool is_connecting() const { return connecting; }
35 int poll_connect(const Time::TimeDelta &);
36 int connect(const SockAddr &);
38 void on_event(IO::PollEvent);