toggle menu
javasteam
1.5.1
jvm
switch theme
search in API
javasteam
/
in.dragonbra.javasteam.networking.steam3
/
Connection
Connection
abstract
class
Connection
Author
lngtr
Since
2018-02-20
Inheritors
EnvelopeEncryptedConnection
TcpConnection
UdpConnection
WebSocketConnection
Members
Constructors
Connection
Link copied to clipboard
constructor
(
)
Properties
connected
Link copied to clipboard
val
connected
:
Event
<
EventArgs
>
Occurs when the physical connection is established.
disconnected
Link copied to clipboard
val
disconnected
:
Event
<
DisconnectedEventArgs
>
Occurs when the physical connection is broken.
net
Msg
Received
Link copied to clipboard
val
netMsgReceived
:
Event
<
NetMsgEventArgs
>
Occurs when a net message is received over the network.
Functions
connect
Link copied to clipboard
fun
connect
(
endPoint
:
InetSocketAddress
)
abstract
fun
connect
(
endPoint
:
InetSocketAddress
,
timeout
:
Int
)
Connects to the specified end point.
disconnect
Link copied to clipboard
abstract
fun
disconnect
(
)
Disconnects this instance.
get
Current
End
Point
Link copied to clipboard
abstract
fun
getCurrentEndPoint
(
)
:
InetSocketAddress
get
Local
IP
Link copied to clipboard
abstract
fun
getLocalIP
(
)
:
InetAddress
Gets the local IP.
get
Protocol
Types
Link copied to clipboard
abstract
fun
getProtocolTypes
(
)
:
ProtocolTypes
send
Link copied to clipboard
abstract
fun
send
(
data
:
Array
<
Byte
>
)
Sends the specified data packet.