I have a c# class P2PLib.
public int portRecv=10101;
public int portSend = 10102;
public int multicastPort=10103;
int memberNum = 0;
string data;
string time;
List<Member> MemberList = new List<Member>();
public void DisplayMembers();
public void start(...);
public void join(..);
public void leave(..);
void add(...);
void remove(...);
How do I create server side code of this class in my interop communication between c# and c++?
http://msdn.microsoft.com/en-us/library/aa645738(v=vs.71).aspx example shows how how we can write interfaces which can be groups of methods
but I am confused as to how will my variables like portsend and others will be initiated in c++ client side code.
---edit---can I keep persistent data with com interfaces? for e.g. the list mentioned above? Will I be able to create an object of this class in the unmanaged code communicating with the managed codes com object?