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

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top