C
C
ChymeNik2017-08-22 17:06:32
.NET
ChymeNik, 2017-08-22 17:06:32

What is the correct way to replace the Socket.Send method for a third party library?

There is a class in which you can set an object of the Socket type through which data will be transmitted.
It is necessary to make sure that when sending data, service information is sent along with them. Reloading the Send method fails (non-virtual).
Is it possible, and how can it be done differently?
Thank you in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LiptonOlolo, 2017-08-22
@LiptonOlolo

public new void Send(byte[] data) { base.Send(data); }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question