123456789101112131415161718192021222324252627282930313233 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2022-12-09
- * Changed: 2022-12-25
- *
- * */
- #ifndef LS_STD_POSIX_SOCKET_HPP
- #define LS_STD_POSIX_SOCKET_HPP
- #include <ls_std/common/interface/IPosixSocket.hpp>
- namespace ls::std::common::api
- {
- class PosixSocket : public ls::std::common::interface_type::IPosixSocket
- {
- public:
- PosixSocket() = default;
- ~PosixSocket() override = default;
- int accept(int _socketFileDescriptor, struct sockaddr *_address, socklen_t* _addressLength) override;
- int bind(int _socketFileDescriptor, const struct sockaddr *_address, socklen_t _addressLength) override;
- int close(int _socketFileDescriptor) override;
- int connect(int _socketFileDescriptor, const struct sockaddr *_address, socklen_t _addressLength) override;
- int create(int _domain, int _type, int _protocol) override;
- int listen(int _socketFileDescriptor, int _backlog) override;
- };
- }
- #endif
|