Example #1
0
 /// <summary>
 /// <para> returns which local port the listen socket is bound to</para>
 /// <para> *pnIP and *pnPort will be 0 if the socket is set to listen for P2P connections only</para>
 /// </summary>
 public static bool GetListenSocketInfo(SNetListenSocket hListenSocket, out uint pnIP, out ushort pnPort)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamNetworking_GetListenSocketInfo(hListenSocket, out pnIP, out pnPort));
 }
Example #2
0
 /// <summary>
 /// <para> checks for data from any socket that has been connected off this listen socket</para>
 /// <para> returns false if there is no data remaining</para>
 /// <para> fills out *pcubMsgSize with the size of the next message, in bytes</para>
 /// <para> fills out *phSocket with the socket that data is available on</para>
 /// </summary>
 public static bool IsDataAvailable(SNetListenSocket hListenSocket, out uint pcubMsgSize, out SNetSocket phSocket)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamNetworking_IsDataAvailable(hListenSocket, out pcubMsgSize, out phSocket));
 }
Example #3
0
 /// <summary>
 /// <para> retrieves data from any socket that has been connected off this listen socket</para>
 /// <para> fills in pubDest with the contents of the message</para>
 /// <para> messages are always complete, of the same size as was sent (i.e. packetized, not streaming)</para>
 /// <para> if *pcubMsgSize &lt; Dest, only partial data is written</para>
 /// <para> returns false if no data is available</para>
 /// <para> fills out *phSocket with the socket that data is available on</para>
 /// </summary>
 public static bool RetrieveData(SNetListenSocket hListenSocket, IntPtr pubDest, uint Dest, out uint pcubMsgSize, out SNetSocket phSocket)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamNetworking_RetrieveData(hListenSocket, pubDest, Dest, out pcubMsgSize, out phSocket));
 }
Example #4
0
 /// <summary>
 /// <para> destroying a listen socket will automatically kill all the regular sockets generated from it</para>
 /// </summary>
 public static bool DestroyListenSocket(SNetListenSocket hSocket, bool bNotifyRemoteEnd)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamNetworking_DestroyListenSocket(hSocket, bNotifyRemoteEnd));
 }