JavaSteam
Toggle table of contents
1.7.0
jvm
Platform filter
jvm
Switch theme
Search in API
JavaSteam
JavaSteam
/
in.dragonbra.javasteam.networking.steam3
/
TcpConnection
Tcp
Connection
open
class
TcpConnection
:
Connection
Author
lngtr
Since
2018-02-21
Members
Constructors
Tcp
Connection
Link copied to clipboard
constructor
(
)
Properties
current
End
Point
Link copied to clipboard
open
val
currentEndPoint
:
InetSocketAddress
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
(
userInitiated
:
Boolean
)
Disconnects this instance.
get
Connected
Link copied to clipboard
open
fun
getConnected
(
)
:
Event
<
EventArgs
>
get
Disconnected
Link copied to clipboard
open
fun
getDisconnected
(
)
:
Event
<
DisconnectedEventArgs
>
get
Local
IP
Link copied to clipboard
open
fun
getLocalIP
(
)
:
InetAddress
Gets the local IP.
get
Net
Msg
Received
Link copied to clipboard
open
fun
getNetMsgReceived
(
)
:
Event
<
NetMsgEventArgs
>
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.