Module |
|
Header |
/Engine/Source/Runtime/Sockets/Public/Sockets.h |
Include |
#include "Sockets.h" |
class FSocket
This is our abstract base class that hides the platform specific socket implementation
Name | Description | ||
---|---|---|---|
|
SocketDescription |
Debug description of socket usage. |
|
|
SocketProtocol |
Protocol used in creation of a socket |
|
|
const ESocketTy... |
SocketType |
Indicates the type of socket this is |
Name | Description | |
---|---|---|
|
FSocket() |
Default constructor. |
|
FSocket ( |
Please migrate to the constructor that specifies protocol stack |
|
FSocket ( |
Please migrate to the constructor that takes an FName for the protocol stack |
|
FSocket ( |
Specifies the type of socket being created |
Name | Description | |
---|---|---|
|
~FSocket() |
Virtual destructor. |
Name | Description | ||
---|---|---|---|
|
FSocket *... |
Accept ( |
Accepts a connection that is pending. |
|
FSocket *... |
Accept ( |
Accepts a connection that is pending. |
|
Bind ( |
Binds a socket to a network byte ordered address. |
|
|
Close() |
Closes the socket |
|
|
Connect ( |
Connects a socket to a network byte ordered address. |
|
|
GetAddress ( |
Reads the address the socket is bound to and returns it. |
|
|
ESocketConne... |
GetConnectionState() |
Determines the connection state of the socket. |
|
GetDescription() |
Get the debug description of the socket. |
|
|
GetPeerAddress ( |
Reads the address of the peer the socket is connected to. |
|
|
GetPortNo() |
Reads the port this socket is bound to. |
|
|
GetProtocol() |
Get the type of protocol the socket is bound to |
|
|
GetSocketType() |
Get the type of protocol the socket is bound to |
|
|
HasPendingConnection ( |
Queries the socket to determine if there is a pending connection. |
|
|
HasPendingData ( |
Queries the socket to determine if there is pending data on the queue. |
|
|
JoinMulticastGroup ( |
Joins this socket to the specified multicast group on the specified interface. |
|
|
JoinMulticastGroup ( |
Joins this socket to the specified multicast group. |
|
|
LeaveMulticastGroup ( |
Removes this UDP client from the specified multicast group. |
|
|
LeaveMulticastGroup ( |
Removes this UDP client from the specified multicast group on the specified interface. |
|
|
Listen ( |
Places the socket into a state to listen for incoming connections. |
|
|
Recv ( |
Reads a chunk of data from a connected socket |
|
|
RecvFrom ( |
Reads a chunk of data from the socket and gathers the source address. |
|
|
RecvFromWithPktInfo ( |
Reads a chunk of data from the socket and gathers the source address and the destination using IP_PKTINFO |
|
|
RecvMulti ( |
Reads multiple packets from the socket at once, gathering the source address and other optional platform specific data. |
|
|
Send |
Sends a buffer on a connected socket. |
|
|
SendTo ( |
Sends a buffer to a network byte ordered address. |
|
|
SetBroadcast ( |
Sets a socket into broadcast mode (UDP only). |
|
|
SetIpPktInfo ( |
Sets whether to enable IP_PKTINFO support |
|
|
SetLinger |
Sets whether and how long a socket will linger after closing. |
|
|
SetMulticastInterface ( |
Sets the interface used to send outgoing multicast datagrams. |
|
|
SetMulticastLoopback ( |
Enables or disables multicast loopback on the socket (UDP only). |
|
|
SetMulticastTtl ( |
Sets the time to live (TTL) for multicast datagrams. |
|
|
SetNoDelay ( |
Sets this socket into TCP_NODELAY mode (TCP only). |
|
|
SetNonBlocking ( |
Sets this socket into non-blocking mode. |
|
|
SetReceiveBufferSize |
Sets the size of the receive buffer to use. |
|
|
SetRecvErr ( |
Enables error queue support for the socket. |
|
|
SetRetrieveTimestamp ( |
Sets whether to retrieve the system-level receive timestamp, for sockets |
|
|
SetReuseAddr ( |
Sets whether a socket can be bound to an address in use. |
|
|
SetSendBufferSize |
Sets the size of the send buffer to use. |
|
|
Shutdown ( |
Shuts down the socket, making it unusable for reads and/or writes. |
|
|
Wait ( |
Blocks until the specified condition is met. |
|
|
WaitForPendingConnection |
Waits for a pending connection on the socket. |
Name | Description | ||
---|---|---|---|
|
FSocket ( |
Please migrate to the constructor that specifies protocol stack |
|
|
FSocket ( |
Please migrate to the constructor that takes an FName for the protocol stack |