Skip to content

Commit 0084836

Browse files
committed
datalane/socket: Add method to check if socket is a server
1 parent 0556b0c commit 0084836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/datalane-socket.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ namespace datalane {
3636
virtual bool good() = 0;
3737
virtual bool bad();
3838

39+
virtual bool is_server() = 0;
40+
3941
public: // listen() only
4042
virtual bool pending() = 0;
4143
virtual error accept(std::shared_ptr<datalane::socket> &socket) = 0;

0 commit comments

Comments
 (0)