private void TransferCompletionCallback(int bytesTransferred, byte[] socketAddress, int socketAddressSize, int receivedFlags, SocketError socketError) { Debug.Assert(socketAddress == null || socketAddress == _socketAddress.Buffer); _socketAddressSize = socketAddressSize; _receivedFlags = SocketPal.GetSocketFlags(receivedFlags); CompletionCallback(bytesTransferred, socketError); }
private void ReceiveMessageFromCompletionCallback(int bytesTransferred, byte[] socketAddress, int socketAddressSize, int receivedFlags, IPPacketInformation ipPacketInformation, SocketError errorCode) { Debug.Assert(_socketAddress != null); Debug.Assert(socketAddress == null || _socketAddress.Buffer == socketAddress); _socketAddressSize = socketAddressSize; _receivedFlags = SocketPal.GetSocketFlags(receivedFlags); _receiveMessageFromPacketInfo = ipPacketInformation; CompletionCallback(bytesTransferred, errorCode); }
public void CompletionCallback(int numBytes, byte[] socketAddress, int socketAddressSize, int receivedFlags, IPPacketInformation ipPacketInformation, SocketError errorCode) { Debug.Assert(_socketAddress != null); Debug.Assert(socketAddress == null || _socketAddress.Buffer == socketAddress); _socketAddressSize = socketAddressSize; _socketFlags = SocketPal.GetSocketFlags(receivedFlags); _ipPacketInformation = ipPacketInformation; base.CompletionCallback(numBytes, errorCode); }