c++ - How to write a test for a network listener? -


i writing piece of c++ code listen network connections. i'm using gtest write unit tests i've reached problem don't know how fix:

how can test functions listen network connections? if put in unit test they'll block.

any ideas?

i'm going use py.test run functional tests, though c++ project.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -