Passing C structure from VC++ Socket server to C# Client

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My C++ server uses sockets to communicate to the C# Client which is also
using the sockets. I want to pass a C Structure from the VC++ socket server
to the C# Client. What are the considerations on the C# client side?

For example, lets say the C# client receives a buffer of data from its
socket port. Lets say it knows which structure it has received in the buffer.
Now,
can the client directly assign the buffer to the structure variable and
expect the type conversions to occur automatically using the Marshall class?
 
Back
Top