+/* Copyright Š 2011 Chris Spencer <firstname.lastname@example.org>
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+class GBNET_API TcpClient: public Networking
+ //! Constructor; connects to the given remote server.
+ * To be notified of any errors in connecting to the server register with the
+ * Networking::onNetworkError() signal before calling \c run() or \c poll() on the I/O service.
+ * \param ioService The I/O service to use for networking communications.
+ * \param host The hostname or IP address (may be IPv4 or IPv6 where the operating system
+ * supports it) of the server to connect to.
+ * \param port The TCP port the server is listening on.
+ TcpClient(boost::asio::io_service &ioService, const std::string &host, uint16_t port);
+ internal::TcpClientImpl *impl_;
+ TcpClient(const TcpClient &);
+ TcpClient & operator=(const TcpClient &);