Optimized Request and Response classes.
This commit is contained in:
@@ -46,7 +46,7 @@ namespace ehs
|
||||
/// @param [in] address The local IPv4 or IPv6 address to bind to. Resolves domain names. The given address can be empty, "127.0.0.1", or "localhost" to automatically find the appropriate device.
|
||||
/// @param [in] port The port to bind to.
|
||||
/// @note Requires the port given to be forwarded if this is called.
|
||||
void Bind(const Str_8& address, UInt_16 port) override;
|
||||
void Bind(Str_8 address, const UInt_16 &port) override;
|
||||
|
||||
/// Listens for incoming connections. Used for servers or PtP.
|
||||
void Listen() override;
|
||||
@@ -58,7 +58,7 @@ namespace ehs
|
||||
/// Connects to a TCP Socket that listens for incoming connections. Used for clients or PtP.
|
||||
/// @param address The address of the listening TCP socket. Resolves domain names. The given address can be empty, "127.0.0.1", or "localhost" to automatically find the appropriate device.
|
||||
/// @param port The port of the listening TCP socket.
|
||||
void Connect(const Str_8& address, UInt_16 port) override;
|
||||
void Connect(Str_8 address, const UInt_16 &port) override;
|
||||
|
||||
/// Sends data in a C-style array with raw functionality. Meaning no internal help outside of native functions besides error checking.
|
||||
/// @param [in] buffer The C-style array to send.
|
||||
@@ -89,12 +89,12 @@ namespace ehs
|
||||
bool IsValid() const override;
|
||||
|
||||
private:
|
||||
void Bind_v6(const Str_8& address, UInt_16 port);
|
||||
void Bind_v6(const Str_8 &address, const UInt_16 &port) const;
|
||||
|
||||
void Bind_v4(const Str_8& address, UInt_16 port);
|
||||
void Bind_v4(const Str_8 &address, const UInt_16 &port) const;
|
||||
|
||||
void Connect_v6(const Str_8& address, UInt_16 port);
|
||||
void Connect_v6(const Str_8 &address, const UInt_16 &port);
|
||||
|
||||
void Connect_v4(const Str_8& address, UInt_16 port);
|
||||
void Connect_v4(const Str_8 &address, const UInt_16 &port);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user