NNProcessData
Processes data received from a shared socket.
- void NNProcessData(
- char * data,
- int len,
- struct sockaddr_in * fromaddr );
Routine | Required Header | Distribution |
---|---|---|
NNProcessData | <natneg.h> | SDKZIP |
Parameters
- data
- [in] The data packets read from the gamesocket.
- len
- [in] Length of the data.
- fromaddr
- [in] The address from which the data packets came.
Remarks
When sharing a socket with the NAT Negotiation SDK, you must read incoming data and pass NN packets to NNProcessData.
Section Reference: Gamespy NAT Negotiation SDK
See Also: NNBeginNegotiationWithSocket