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;
21 Emitted when the socket finishes connecting. The argument is a standard
22 error code, 0 indicating success.
24 sigc::signal<void, int> signal_connect_finished;
26 StreamSocket(Family, int =0);
27 bool get_connecting() const { return connecting; }
28 int poll_connect(const Time::TimeDelta &);
29 int connect(const SockAddr &);
33 StreamSocket(SocketHandle, const SockAddr &);
34 void on_event(IO::PollEvent);