Hi,<br><br>My first plan was to write an AI in .Net with a translated libtpproto-java library to c#.<br>This plan failed... would take to long and I need to do it for every update of libtpproto-java.<br>Mithro suggest writing my own protocol library.<br>
So, I stated creating a C# code generator for a C# protocol library.<br><br>Today I got the first productive output:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
namespace ProtoLib {<br> using System;<br> <br> <br> public class protocol {<br> }<br>}</blockquote><div><br>Currently Iīm using CodeDom, xmlreader and textwriter. <br><br>My current problem is I donīt know how much I should create with the generator and what.<br>
I would create the classes from the xml file (protocol, packet,...) and for the classes some getters, setters like llnz wrote me.<br>Also he wrote me that the generated library should create frames. As I understand frames are network packets, arenīt they?<br>
So best would be that incoming frames triggers events and out going frames should be created via a method?<br>Should I only create one protocol library which only has the protocol handling like the frames and a separate client library?<br>
Or should I include the connection part and the rest, too?<br><br>Maybe it makes sense to create a git repo to backup, handle versions and share the source.<br>Now we came to the license ... Which license would be the best for the community and/or developers?<br>
<br><br>~Marcel Hauf<br></div>