Line data Source code
1 : /********************************************************************************
2 : * Copyright (c) 2025 Accenture
3 : *
4 : * This program and the accompanying materials are made available under the
5 : * terms of the Apache License Version 2.0 which is available at
6 : * https://www.apache.org/licenses/LICENSE-2.0
7 : *
8 : * SPDX-License-Identifier: Apache-2.0
9 : ********************************************************************************/
10 :
11 : #include "tcp/socket/AbstractServerSocket.h"
12 :
13 : namespace tcp
14 : {
15 4 : AbstractServerSocket::AbstractServerSocket()
16 4 : : _port(0U), _socketProvidingConnectionListener(nullptr)
17 4 : {}
18 :
19 1 : AbstractServerSocket::AbstractServerSocket(
20 1 : uint16_t const port, ISocketProvidingConnectionListener& providingListener)
21 1 : : _port(port), _socketProvidingConnectionListener(&providingListener)
22 1 : {}
23 :
24 : } // namespace tcp
|