The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
Service.getServiceByPort
std
socket
Service
If a protocol name is omitted, any protocol will be matched.
bool
getServiceByName
(const(char)[] name, const(char)[] protocolName)
bool
getServiceByPort
(ushort port, const(char)[] protocolName)
class
Service
@
trusted
nothrow
bool
getServiceByPort
(
ushort
port
,
scope
const
(
char
)[]
protocolName
= null
)
Return Value
Type:
bool
false on failure.
Meta
Source
See Implementation
std
socket
Service
functions
getServiceByName
getServiceByPort
variables
name
Suggestion Box / Bug Report
If a protocol name is omitted, any protocol will be matched.