MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getSourceAddress

Method getSourceAddress

Libraries/Async/Async.cpp:440–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440SC::SocketIPAddress SC::AsyncSocketReceive::Result::getSourceAddress() const
441{
442 if (getAsync().getType() == Type::SocketReceiveFrom)
443 {
444 return static_cast<const AsyncSocketReceiveFrom&>(getAsync()).address;
445 }
446 return SocketIPAddress();
447}
448
449SC::Result SC::AsyncSocketReceive::validate(AsyncEventLoop&)
450{

Callers 2

await_suspendMethod · 0.80

Calls 1

getTypeMethod · 0.45

Tested by 1