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

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -