Skip to content

bisect-pt/cpp-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Challenge

1. UDP socket

Consider the class udp_socket_t.

1.1

There is a comment that implies that the interface and the implementation is not complete. What is missing there?

1.2

C++ constructors don't allow returning errors. How would you avoid having to check that the socket is valid using the udp_socket_t::is_valid() function and rather signal immediately that the construction failed, without using exceptions?

Hint: would a static function that returns an instance of udp_socket_t help?

2. Reactor

Consider the class reactor_t.

As you can see, the implementation file is empty. Implement the class according to the specification in the header file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published