sf.TcpSocket – sfml Reference Manual
Packages
sfml
sf
TcpSocket
TcpSocket
connect
disconnect
getLocalPort
getRemoteAddress
getRemotePort
isBlocking
receive
receivePacket
send
sendPacket
sendPartial
setBlocking
TcpSocket
Object Hierarchy:
Description:
[
CCode
( cname =
"sfTcpSocket"
, cprefix =
"sfTcpSocket_"
, free_function =
"sfTcpSocket_destroy"
) ]
[
Compact
]
public
class
TcpSocket
Namespace:
sf
Package:
sfml
Content:
Creation methods:
public
TcpSocket
()
Methods:
public
SocketStatus
connect
(
IpAddress
remoteAddress,
ushort
remotePort,
Time
timeout)
public
void
disconnect
()
public
ushort
getLocalPort
()
public
IpAddress
getRemoteAddress
()
public
ushort
getRemotePort
()
public
bool
isBlocking
()
public
SocketStatus
receive
(
void
* data,
size_t
size,
out
size_t
received)
public
SocketStatus
receivePacket
(
Packet
packet)
public
SocketStatus
send
(
void
* data,
size_t
size)
public
SocketStatus
sendPacket
(
Packet
packet)
public
SocketStatus
sendPartial
(
void
* data,
size_t
size,
out
size_t
sent)
public
void
setBlocking
(
bool
blocking)