toggle menu
javasteam
1.5.1
jvm
switch theme
search in API
javasteam
/
in.dragonbra.javasteam.networking.steam3
/
UdpConnection
Udp
Connection
open
class
UdpConnection
:
Connection
Author
lngtr
Since
2018-03-01
Members
Constructors
Udp
Connection
Link copied to clipboard
constructor
(
)
Properties
connected
Link copied to clipboard
val
connected
:
Event
<
EventArgs
>
Occurs when the physical connection is established.
current
End
Point
Link copied to clipboard
open
val
currentEndPoint
:
InetSocketAddress
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
)
open
fun
connect
(
endPoint
:
InetSocketAddress
,
timeout
:
Int
)
Connects to the specified end point.
disconnect
Link copied to clipboard
open
fun
disconnect
(
)
Disconnects this instance.
get
Local
IP
Link copied to clipboard
open
fun
getLocalIP
(
)
:
InetAddress
Gets the local IP.
get
Protocol
Types
Link copied to clipboard
open
fun
getProtocolTypes
(
)
:
ProtocolTypes
send
Link copied to clipboard
open
fun
send
(
data
:
Array
<
Byte
>
)
Sends the specified data packet.