MCPcopy Create free account
hub / github.com/dermesser/libsocket / inet_stream

Class inet_stream

headers/inetclientstream.hpp:54–71  ·  view source on GitHub ↗

* @addtogroup libsocketplusplus * @{ */ * @brief Provides TCP/IP client sockets. * This class is the most used socket class in libsocket++. It provides plain * TCP client sockets which can be used for almost everything. */

Source from the content-addressed store, hash-verified

52 * TCP client sockets which can be used for almost everything.
53 */
54class inet_stream : public inet_socket, public stream_client_socket {
55 public:
56 inet_stream(void);
57 inet_stream(const char* dsthost, const char* dstport, int proto_osi3,
58 int flags = 0); // flags: socket()
59 inet_stream(const string& dsthost, const string& dstport, int proto_osi3,
60 int flags = 0);
61
62 void connect(const char* dsthost, const char* dstport, int proto_osi3,
63 int flags = 0); // flags: socket()
64 void connect(const string& dsthost, const string& dstport, int proto_osi3,
65 int flags = 0);
66
67 friend class inet_stream_server; ///< `inet_stream_server` is our friend so
68 ///< he may manipulate private members as
69 ///< `sfd` when returning an instance
70 ///< (e.g. at `accept()`)
71};
72/**
73 * @}
74 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected