using System; using Steamworks.Data; namespace Steamworks { public interface ISocketManager { /// /// Must call Accept or Close on the connection within a second or so /// void OnConnecting( Connection connection, ConnectionInfo info ); /// /// Called when the connection is fully connected and can start being communicated with /// void OnConnected( Connection connection, ConnectionInfo info ); /// /// Called when the connection leaves. Must call Close on the connection /// void OnDisconnected( Connection connection, ConnectionInfo info ); /// /// Received a message from a connection /// void OnMessage( Connection connection, NetIdentity identity, IntPtr data, int size, long messageNum, long recvTime, int channel ); } }