* @addtogroup libsocketplusplus * @{ */ * @brief TCP server socket (passive TCP socket) * * This class acts as TCP server. Once set up you may call `accept()` on it. * When a client wants to connect, a pointer to an `inet_stream` class is * returned. It may be used to communicate with the client. * * @see inet_stream */
| 54 | * @see inet_stream |
| 55 | */ |
| 56 | class inet_stream_server : public inet_socket { |
| 57 | public: |
| 58 | inet_stream_server(void); |
| 59 | inet_stream_server(const char* bindhost, const char* bindport, |
| 60 | int proto_osi3, int flags = 0); |
| 61 | inet_stream_server(const string& bindhost, const string& bindport, |
| 62 | int proto_osi3, int flags = 0); |
| 63 | |
| 64 | void setup(const char* bindhost, const char* bindport, int proto_osi3, |
| 65 | int flags = 0); |
| 66 | void setup(const string& bindhost, const string& bindport, int proto_osi3, |
| 67 | int flags = 0); |
| 68 | |
| 69 | inet_stream* accept(int numeric = 0, int accept_flags = 0); |
| 70 | unique_ptr<inet_stream> accept2(int numeric = 0, int accept_flags = 0); |
| 71 | |
| 72 | const string& getbindhost(void); |
| 73 | const string& getbindport(void); |
| 74 | }; |
| 75 | /** |
| 76 | * @} |
| 77 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected