Networkcomms differences between the V2 version and the V3 version syntax

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.