NETWORKCOMMS Network communication Framework Preamble
The V3 version of the NETWORKCOMMS communication Framework is an important upgrade, with many changes at the bottom, but not much more syntactically than the V2 version.
Listening Port:
In V3
IPEndPoint thepoint = new IPEndPoint (Ipaddress.parse (txtip.text), int. Parse (Txtport.text));
Start listening on a T port
Connection.startlistening (Connectiontype.tcp,thepoint);
In V2
New int . Parse (Txtport.text)); // start listening on a T port false);
Sendreceiveobject method
In V2
Reqmessage the type of message sent
Resmessage expected message type to return
The time-out period
send data of type int to server with a value of 1000
string resmsg = connection. sendreceiveobject<string> ("reqmessage""resmessage " (+);
In V3
// reqmessage sent message type // resmessage expecting the returned message type // 5000 timeout // 1000 send data of type int to server with a value of 1 The //The difference is that the specific type of the parameter being sent is indicated in the V3 version string resmsg = connection. Sendreceiveobject<int , string > ( " reqmessage , " resmessage , 5000 , );
And then I thought of adding
www.networkcomms.cn Edit
Networkcomms differences between the V2 version and the V3 version syntax