/vendor/hisilicon/hispark_pegasus/demo/udpserver_demo/ |
H A D | udp_server_test.c | 23 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));
|
/third_party/alsa-utils/seq/aplaymidi/ |
H A D | aplaymidi.c | 2 * aplaymidi.c - play Standard MIDI Files to sequencer port(s) 52 unsigned char port; /* port index */ member 139 /* parses one or more port addresses from the string */ 162 fatal("Invalid port %s - %s", port_name, snd_strerror(err)); in parse_ports() 175 /* the first created port is 0 anyway, but let's make sure ... */ in create_source_port() 187 check_snd("create port", err); in create_source_port() 205 * we're playing - otherwise, ALSA would reset the port after every in connect_ports() 209 err = snd_seq_connect_to(seq, 0, ports[i].client, ports[i].port); in connect_ports() 211 fatal("Cannot connect to port in connect_ports() 309 unsigned char port = 0; read_track() local [all...] |
/third_party/python/Lib/ |
H A D | nntplib.py | 129 # Standard port used by NNTP servers 315 def __init__(self, host, port=NNTP_PORT, user=None, password=None, 320 - port: port to connect to (default the standard NNTP port) 336 self.port = port 401 sys.audit("nntplib.connect", self, self.host, self.port) 402 return socket.create_connection((self.host, self.port), timeout) 1020 def __init__(self, host, port 1062 port = args.port global() variable in NNTP [all...] |
/drivers/peripheral/usb/sample/host/src/ |
H A D | usbhost_sdkraw_speed.c | 342 struct SerialDevice *port = NULL; in UsbSerialDeviceAlloc() local 349 port = (struct SerialDevice *)OsalMemCalloc(sizeof(*port)); in UsbSerialDeviceAlloc() 350 if (port == NULL) { in UsbSerialDeviceAlloc() 351 HDF_LOGE("%{public}s: Alloc usb serial port failed", __func__); in UsbSerialDeviceAlloc() 354 if (OsalMutexInit(&port->lock) != HDF_SUCCESS) { in UsbSerialDeviceAlloc() 358 port->lineCoding.dwDTERate = CPU_TO_LE32(DATARATE); in UsbSerialDeviceAlloc() 359 port->lineCoding.bCharFormat = USB_CDC_1_STOP_BITS; in UsbSerialDeviceAlloc() 360 port->lineCoding.bParityType = USB_CDC_NO_PARITY; in UsbSerialDeviceAlloc() 361 port in UsbSerialDeviceAlloc() [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/ |
H A D | lnn_ip_network_impl.c | 142 LNN_LOGE(LNN_BUILDER, "get port failed"); in OpenAuthPort() 150 int32_t port = AuthStartListening(AUTH_LINK_TYPE_WIFI, localIp, authPort); in OpenAuthPort() local 151 if (port < 0) { in OpenAuthPort() 157 LNN_LOGI(LNN_BUILDER, "open auth port listening on ip=%{public}s", AnonymizeWrapper(anonyIp)); in OpenAuthPort() 160 return LnnSetLocalNumInfo(NUM_KEY_AUTH_PORT, port); in OpenAuthPort() 175 LNN_LOGE(LNN_BUILDER, "get port failed"); in OpenSessionPort() 179 int32_t port; in OpenSessionPort() local 184 .port = sessionPort, in OpenSessionPort() 193 port = TransTdcStartSessionListener(DIRECT_CHANNEL_SERVER_WIFI, &info); in OpenSessionPort() 194 if (port < in OpenSessionPort() 234 int32_t port = ConnStartLocalListening(&listenerInfo); OpenProxyPort() local [all...] |
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_p2p.c | 66 static int32_t StartNewP2pListener(const char *ip, int32_t *port) in StartNewP2pListener() argument 72 info.socketOption.port = *port; in StartNewP2pListener() 86 *port = listenerPort; in StartNewP2pListener() 87 g_p2pSessionInfo.p2pSessionPort = *port; in StartNewP2pListener() 91 static int32_t StartNewHmlListener(const char *ip, int32_t *port, ListenerModule *moudleType) in StartNewHmlListener() argument 97 info.socketOption.port = *port; in StartNewHmlListener() 115 *port = listenerPort; in StartNewHmlListener() 127 "del hmlListener port in DelHmlListenerByMoudle() 352 StartHmlListener(const char *ip, int32_t *port, const char *peerUuid) StartHmlListener() argument 404 AnonymizeIp(const char *ip, char *sessionIp, int32_t port) AnonymizeIp() argument 452 StartP2pListener(const char *ip, int32_t *port, const char *peerUuid) StartP2pListener() argument 793 ConnectTcpDirectPeer(const char *addr, int port, const char *myIp) ConnectTcpDirectPeer() argument [all...] |
/device/qemu/SmartL_E802/liteos_m/board/hals/csky_driver/src/ |
H A D | devices.c | 99 port_name_e port; member 127 int32_t target_gpio_port_init(port_name_e port, uint32_t *base, uint32_t *irq, uint32_t *pin_num) in target_gpio_port_init() argument 132 if (sg_gpio_config[i].port == port) { in target_gpio_port_init()
|
/foundation/multimedia/image_effect/test/unittest/ |
H A D | TestPort.cpp | 18 #include "port.h" 62 std::shared_ptr<Port> port = nullptr; in HWTEST_F() local 63 result = outPort.Connect(port); in HWTEST_F() 69 result = emptyInPort.Connect(port); in HWTEST_F() 72 result = emptyOutPort.Connect(port); in HWTEST_F()
|
/third_party/ffmpeg/libavformat/ |
H A D | tls.c | 59 int port; in ff_tls_open_underlying() local 72 av_url_split(NULL, 0, NULL, 0, c->underlying_host, sizeof(c->underlying_host), &port, NULL, 0, uri); in ff_tls_open_underlying() 83 ff_url_join(buf, sizeof(buf), "tcp", NULL, c->underlying_host, port, "%s", p); in ff_tls_open_underlying() 108 ff_url_join(dest, sizeof(dest), NULL, NULL, c->underlying_host, port, NULL); in ff_tls_open_underlying()
|
/third_party/backends/backend/ |
H A D | mustek_pp.h | 76 typedef SANE_Status (*SANE_Attach_Callback) (SANE_String_Const port, SANE_String_Const name, 88 SANE_String_Const port, 107 SANE_Status (*open)(SANE_String port, SANE_Int caps, SANE_Int *fd); 163 /* port */ 164 SANE_String port; member
|
H A D | xerox_mfp-tcp.c | 101 int port; in tcp_dev_open() local 125 port = atoi(strport); in tcp_dev_open() 128 port = ntohs(sp->s_port); in tcp_dev_open() 135 status = sanei_tcp_open(strhost, port, &dev->dn); in tcp_dev_open()
|
/third_party/curl/lib/ |
H A D | amigaos.c | 128 int port) in Curl_ipv4_resolve_r() 145 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r() 161 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r() 171 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r() 127 Curl_ipv4_resolve_r(const char *hostname, int port) Curl_ipv4_resolve_r() argument
|
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-proxy/ |
H A D | main.c | 34 static int interrupted, bad = 1, port = 0 /* unix domain socket */; variable 113 "\"port\": 80," 122 "\"port\":" "443," 195 if (lws_ss_proxy_create(context, ibind, port)) { in app_system_state_nf() 264 /* connect to ssproxy via UDS by default, else via tcp with this port */ in main() 266 port = atoi(p); in main() 280 info.port = CONTEXT_PORT_NO_LISTEN; in main()
|
/third_party/libwebsockets/minimal-examples/ws-client/minimal-ws-client-echo/ |
H A D | minimal-ws-client-echo.c | 26 static int interrupted, port = 7681, options = 0; variable 62 "port", /* pvo name */ 63 (void *)&port /* pvo value */ 112 lwsl_user(" lws-minimal-ws-client-echo [-n (no exts)] [-u url] [-p port] [-o (once)]\n"); in main() 118 port = atoi(p); in main() 135 info.port = CONTEXT_PORT_NO_LISTEN; in main()
|
/third_party/libwebsockets/minimal-examples-lowlevel/raw/minimal-raw-client/ |
H A D | main.c | 38 static const char *server = "libwebsockets.org", *port = "443"; variable 158 i.port = atoi(port); in system_notify_cb() 196 info.port = CONTEXT_PORT_NO_LISTEN_SERVER; in main()
|
/third_party/node/lib/ |
H A D | inspector.js | 164 * Activates inspector on host and port. 165 * @param {number} [port] 170 function inspectorOpen(port, host, wait) { 176 // open() function requires the port to fit into a 16-bit unsigned integer, 178 if (isUint32(port)) { 179 validateInt32(port, 'port', 0, 65535); 181 open(port, host);
|
/third_party/node/test/parallel/ |
H A D | test-http-agent-reuse-drained-socket-only.js | 23 sendFstReq(server.address().port); 30 port: serverPort, 94 port: serverPort, 113 port: serverPort,
|
H A D | test-http-keep-alive-max-requests.js | 88 anotherSocket.connect({ port: server.address().port }); 115 socket.connect({ port: server.address().port });
|
H A D | test-https-insecure-parse-per-stream.js | 79 port: server.address().port, 105 port: server.address().port,
|
H A D | test-https-max-header-size-per-stream.js | 79 port: server.address().port, 105 port: server.address().port,
|
/third_party/node/test/sequential/ |
H A D | test-tls-securepair-client.js | 87 const port = matches[1]; 89 startClient(port); 125 function startClient(port) { 139 s.connect(port);
|
/third_party/node/test/async-hooks/ |
H A D | test-http-agent-handle-reuse-serial.js | 35 const port = server.address().port; 41 agent, port, method: 'POST', 62 agent, port, method: 'POST', headers: {
|
H A D | test-http-agent-handle-reuse-parallel.js | 56 const port = server.address().port; 61 agent, port, method: 'POST', 67 agent, port, method: 'POST',
|
/third_party/ltp/testcases/network/tcp_cmds/sendfile/ |
H A D | testsf_c.c | 4 * Syntax: testsf_c <server IP addr> <port> <client_filename> <server_filename> <file-length> 39 int port; in main() local 44 "usage: server-ip port client-file server-file file-len"); in main() 84 port = atoi(argv[2]); in main() 87 sai.sin6_port = htons(port); in main() 89 sai.sin_port = htons(port); in main()
|
/third_party/node/deps/openssl/openssl/include/openssl/ |
H A D | http.h | 43 const char *server, const char *port, 64 OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port, 69 int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port, 85 const char *server, const char *port,
|