Represents a socket address for TCP/IP.
sealed class
|
SocketEndPoint
|
implements
|
IEndPoint
|
The hostname or IP address.
public
property
|
Hostname
{
get
}
|
||
type
|
string
|
||
value
|
|
The hostname or IP address. |
The port number.
public
property
|
PortNumber
{
get
}
|
||
type
|
int32
|
||
value
|
|
The port number. |
Creates a new instance of SocketEndPoint.
public
constructor
|
SocketEndPoint
(string hostname,
int32 portNumber)
|
||
params
|
hostname
|
[not-null]
|
The hostname or IP address. |
portNumber
|
[0..65535]
|
The port number. |
Creates a new network server that listens on this endpoint.
[OwnerReturn]
|
||||
public
method
|
CreateServer
()
|
|||
type
|
IServer
|
|||
returns
|
|
The created network server. | ||
implements
|
IEndPoint.CreateServer
|
Exceptions:
Opens a new network connection to this endpoint.
[OwnerReturn]
|
||||
public
method
|
OpenConnection
()
|
|||
type
|
IConnection
|
|||
returns
|
The
created
network
connection
or
null
if
the
timeout
has
elapsed.
|
|||
implements
|
IEndPoint.OpenConnection
|
Exceptions:
[Pure]
|
||||
public
override
method
|
ToString
()
|
|||
type
|
string
|