Phoenixframe platform connects to the socket server and receives an example of the return value

Source: Internet
Author: User
Package Org.phoenix.cases.webservice;import Java.util.linkedlist;import Org.phoenix.action.WebElementActionProxy; Import Org.phoenix.model.caselogbean;import org.phoenix.model.unitlogbean;import org.phoenix.utils.nettelnet;/** * Phoenixframe platform connects to the socket server and receives an example of the return value * @author Mengfeiyang * */public class Testsocket extends webelementactionproxy{ private static String Casename = ""; @Overridepublic linkedlist<unitlogbean> Run (Caselogbean arg0) {init (casename, ARG0); Nettelnet n = new Nettelnet ("10.161.88.64", 8889); System.out.println (N.sendcommand ("Test", "Password:"));//Send the test instruction to the server and receive the character N.disconnect () at the end of the Password: keyword; return Getunitlog (); }}


Phoenixframe platform connects to the socket server and receives an example of the return value

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.