gt2SocketErrorCallback

GameSpy SDK

gt2SocketErrorCallback

This callback is used to notify the application of a closed socket or fatal socket error condition.

typedef void (*gt2SocketErrorCallback)(
GT2Socket socket );
RoutineRequired HeaderDistribution
gt2SocketErrorCallback<gt2.h>SDKZIP

Parameters

socket
[in] The handle to the socket.

Remarks

Once this callback returns, the socket and all of its connections are invalid and can no longer be used. All connections that use this socket are terminated, and their gt2CloseCallback callbacks will be called before this callback is called (with the reason set to GT2SocketError).

Section Reference: Gamespy Transport SDK

See Also: gt2CreateSocket