* @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. */
| 52 | * TCP client sockets which can be used for almost everything. |
| 53 | */ |
| 54 | class 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 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected