Home
last modified time | relevance | path

Searched refs:port (Results 1 - 25 of 35) sorted by relevance

12

/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/udpserver_env/
H A Dnet_demo.h19 void NetDemoTest(unsigned short port, const char* host);
31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument
34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO()
35 testFunc(host, port); \ in CLIENT_TEST_DEMO()
42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument
45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO()
46 testFunc(port); \ in SERVER_TEST_DEMO()
H A Dudp_server_test.c32 void UdpServerTest(unsigned short port) argument
41 serverAddr.sin_port = htons(port);
50 printf("bind to port %u success!\r\n", port);
56 printf("peer info: ipaddr = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port));
/vendor/hisilicon/hispark_pegasus/demo/smart_night_light_demo/udpserver_light/
H A Dnet_demo.h19 void NetDemoTest(unsigned short port, const char* host);
30 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument
33 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO()
34 testFunc(host, port); \ in CLIENT_TEST_DEMO()
41 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument
44 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO()
45 testFunc(port); \ in SERVER_TEST_DEMO()
H A Dudp_server_test.c30 void UdpServerTest(unsigned short port) argument
39 serverAddr.sin_port = htons(port);
48 printf("bind to port %u success!\r\n", port);
54 printf("peer info: ipaddr = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port));
/vendor/hisilicon/hispark_pegasus/demo/tcpclient_demo/
H A Dnet_demo.h20 void NetDemoTest(unsigned short port, const char* host);
32 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument
35 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO()
36 testFunc(host, port); \ in CLIENT_TEST_DEMO()
43 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument
46 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO()
47 testFunc(port); \ in SERVER_TEST_DEMO()
H A Ddemo_entry_posix.c23 printf("Usage: %s [port] [host]\n", argv[0]); in main()
25 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; in main() local
28 NetDemoTest(port, host); in main()
/vendor/hisilicon/hispark_pegasus/demo/tcpserver_demo/
H A Dnet_demo.h19 void NetDemoTest(unsigned short port, const char* host);
31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument
34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO()
35 testFunc(host, port); \ in CLIENT_TEST_DEMO()
42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument
45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO()
46 testFunc(port); \ in SERVER_TEST_DEMO()
H A Ddemo_entry_posix.c21 printf("Usage: %s [port] [host]\n", argv[0]); in main()
23 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; in main() local
26 NetDemoTest(port, host); in main()
/vendor/hisilicon/hispark_pegasus/demo/udpclient_demo/
H A Dnet_demo.h19 void NetDemoTest(unsigned short port, const char* host);
31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument
34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO()
35 testFunc(host, port); \ in CLIENT_TEST_DEMO()
42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument
45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO()
46 testFunc(port); \ in SERVER_TEST_DEMO()
H A Ddemo_entry_posix.c20 printf("Usage: %s [port] [host]\n", argv[0]); in main()
22 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; in main() local
25 NetDemoTest(port, host); in main()
/vendor/hisilicon/hispark_pegasus/demo/udpserver_demo/
H A Dnet_demo.h19 void NetDemoTest(unsigned short port, const char* host);
31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument
34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO()
35 testFunc(host, port); \ in CLIENT_TEST_DEMO()
42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument
45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO()
46 testFunc(port); \ in SERVER_TEST_DEMO()
H A Ddemo_entry_posix.c21 printf("Usage: %s [port] [host]\n", argv[0]); in main()
23 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; in main() local
26 NetDemoTest(port, host); in main()
H A Dudp_server_test.c23 void UdpServerTest(unsigned short port) argument
32 serverAddr.sin_port = htons(port);
42 printf("bind to port %u success!\r\n", port);
51 printf("peer info: ipaddr = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port));
/vendor/hisilicon/hispark_pegasus/demo/lwip_demo/
H A Dlwip_tcp_client.c23 void TcpClientTest(const char* host, unsigned short port) in TcpClientTest() argument
29 serverAddr.sin_port = htons(port); // 端口号,从主机字节序转为网络字节序 in TcpClientTest()
60 void NetDemoTest(unsigned short port, const char* host) in NetDemoTest() argument
65 TcpClientTest(host, port); in NetDemoTest()
H A Ddemo_entry_posix.c23 printf("Usage: %s [port] [host]\n", argv[0]); in main()
25 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; /* 1 */ in main() local
28 NetDemoTest(port, host); in main()
H A Dlwip_tcp_server.c24 void TcpServerTest(unsigned short port) in TcpServerTest() argument
33 serverAddr.sin_port = htons(port); // 端口号,从主机字节序转为网络字节序 in TcpServerTest()
42 printf("bind to port success!\r\n"); in TcpServerTest()
64 printf("client addr info: host = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port)); in TcpServerTest()
88 void NetDemoTest(unsigned short port, const char* host) in NetDemoTest() argument
93 TcpServerTest(port); in NetDemoTest()
H A Dnet_demo.h19 void NetDemoTest(unsigned short port, const char* host);
/vendor/hisilicon/hispark_pegasus/demo/coap_demo/
H A Dcoap_client.c58 src_addr.port = 23456; /* 主机端口号23456 */ in CoapClientStart()
107 dst_addr.port = COAP_DEFAULT_PORT; in CoapClientSendMsg()
113 listen_addr.port = 23456; /* 监听端口号23456 */ in CoapClientSendMsg()
H A Dcoap_service.c84 serv_addr.port = COAP_DEFAULT_PORT; in CoapServerStart()
/vendor/hisilicon/hispark_pegasus/demo/colorfullight_demo/
H A Dcolorful_light_demo.c89 static const WifiIotPwmPort port[] = {WIFI_IOT_PWM_PORT_PWM1, WIFI_IOT_PWM_PORT_PWM2}; in CorlorfulLightTask() local
96 PwmStart(port[i], duty[i], PWM_FREQ_DIVISION); in CorlorfulLightTask()
98 PwmStop(port[i]); in CorlorfulLightTask()
/vendor/hisilicon/hispark_pegasus/demo/oledplayer_demo/
H A Dbin2stream.py84 print("Usage: {} binFile [port]\n\t".format(sys.argv[0]))
88 port = DEFAULT_PORT if len(sys.argv) < 3 else int(sys.argv[2])
90 print('binFile:', binFile, 'port:', port)
91 server = ThreadingTCPServer(('', port), EncodeHandler)
/vendor/hihope/dayu210/bluetooth/include/
H A Duserial.h19 // This module manages the serial port over which HCI commands
53 // Opens the given serial port. Returns true if successful, false otherwise.
55 // buffers from data read off the serial port. If you wish to pause the
58 // serial port was successfully opened and buffer production has started. It
60 bool userial_open(userial_port_t port);
64 // Reads a maximum of |len| bytes from the serial port into |p_buffer|.
69 // Writes a maximum of |len| bytes from |p_data| to the serial port.
/vendor/hihope/rk3568/bluetooth/include/
H A Duserial.h19 // This module manages the serial port over which HCI commands
53 // Opens the given serial port. Returns true if successful, false otherwise.
55 // buffers from data read off the serial port. If you wish to pause the
58 // serial port was successfully opened and buffer production has started. It
60 bool userial_open(userial_port_t port);
64 // Reads a maximum of |len| bytes from the serial port into |p_buffer|.
69 // Writes a maximum of |len| bytes from |p_data| to the serial port.
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/
H A Dapp_demo_multi_sample.h260 void PwmInit(unsigned int id, unsigned char val, unsigned int port);
/vendor/hisilicon/hispark_pegasus/demo/nfc_demo/
H A Dapp_demo_multi_sample.h260 void PwmInit(unsigned int id, unsigned char val, unsigned int port);

Completed in 7 milliseconds

12