Tidying
This commit is contained in:
@@ -24,8 +24,8 @@ namespace Bloom::DebugServers::Gdb
|
|||||||
|
|
||||||
this->socketFileDescriptor = ::accept(
|
this->socketFileDescriptor = ::accept(
|
||||||
serverSocketFileDescriptor,
|
serverSocketFileDescriptor,
|
||||||
(sockaddr*) &(this->socketAddress),
|
reinterpret_cast<sockaddr*>(&(this->socketAddress)),
|
||||||
(socklen_t*) &socketAddressLength
|
reinterpret_cast<socklen_t*>(&socketAddressLength)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this->socketFileDescriptor == -1) {
|
if (this->socketFileDescriptor == -1) {
|
||||||
@@ -35,7 +35,7 @@ namespace Bloom::DebugServers::Gdb
|
|||||||
::fcntl(
|
::fcntl(
|
||||||
this->socketFileDescriptor,
|
this->socketFileDescriptor,
|
||||||
F_SETFL,
|
F_SETFL,
|
||||||
fcntl(this->socketFileDescriptor, F_GETFL, 0) | O_NONBLOCK
|
::fcntl(this->socketFileDescriptor, F_GETFL, 0) | O_NONBLOCK
|
||||||
);
|
);
|
||||||
|
|
||||||
this->epollInstance.addEntry(this->socketFileDescriptor, static_cast<std::uint16_t>(EpollEvent::READ_READY));
|
this->epollInstance.addEntry(this->socketFileDescriptor, static_cast<std::uint16_t>(EpollEvent::READ_READY));
|
||||||
|
|||||||
Reference in New Issue
Block a user