Home
last modified time | relevance | path

Searched refs:server (Results 201 - 225 of 885) sorted by relevance

12345678910>>...36

/third_party/libuv/test/
H A Dtest-udp-connect.c30 ASSERT_NE((uv_udp_t*)(handle) == &server || (uv_udp_t*)(handle) == &client, 0)
32 static uv_udp_t server; variable
93 uv_close((uv_handle_t*) &server, close_cb); in sv_recv_cb()
112 r = uv_udp_init(uv_default_loop(), &server); in TEST_IMPL()
115 r = uv_udp_bind(&server, (const struct sockaddr*) &lo_addr, 0); in TEST_IMPL()
118 r = uv_udp_recv_start(&server, alloc_cb, sv_recv_cb); in TEST_IMPL()
192 ASSERT_OK(server.send_queue_size); in TEST_IMPL()
H A Dtest-tcp-connect-error.c50 uv_tcp_t server; in TEST_IMPL() local
56 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
59 &server, in TEST_IMPL()
64 uv_close((uv_handle_t*)&server, close_cb); in TEST_IMPL()
/third_party/node/test/parallel/
H A Dtest-https-strict.js28 // Disable strict server certificate validation by the client
82 const server1 = server(options1);
83 const server2 = server(options2);
84 const server3 = server(options3);
96 function server(options) { function
143 const server = port === server1.address().port ? server1 :
147 if (!server) throw new Error(`invalid port: ${port}`);
148 server.expectCount++;
H A Dtest-cluster-accept-fail.js19 const server = net.createServer(common.mustNotCall());
20 server.listen(0, common.mustCall(() => {
22 const socket = net.connect(server.address().port);
25 server.close(common.mustCall(() => {
H A Dtest-http-allow-req-after-204-res.js31 const countdown = new Countdown(codes.length, () => server.close());
33 const server = http.createServer(common.mustCall((req, res) => {
44 port: server.address().port,
61 server.listen(0, nextRequest);
H A Dtest-http-chunked-smuggling.js11 const server = http.createServer(common.mustCall((request, response) => {
16 server.listen(0, common.mustCall(start));
19 const sock = net.connect(server.address().port);
41 server.close();
H A Dtest-http-client-incomingmessage-destroy.js7 const server = createServer(common.mustCall((req, res) => {
14 server.close();
19 server.listen(0, () => {
21 port: server.address().port
H A Dtest-http-client-request-options.js8 const server = http.createServer(common.mustCall((req, res) => {
18 server.listen(0, common.localhostIPv4, () => {
19 const { address, port } = server.address();
24 server.close();
H A Dtest-http-request-smuggling-content-length.js11 const server = http.createServer(common.mustNotCall());
13 server.listen(0, common.mustCall(start));
16 const sock = net.connect(server.address().port);
29 server.close();
H A Dtest-http-server-incomingmessage-destroy.js7 const server = createServer(common.mustCall((req, res) => {
15 server.listen(0, common.mustCall(() => {
17 port: server.address().port
23 server.close();
H A Dtest-http-server-write-end-after-end.js6 const server = http.createServer(handle);
17 server.close();
24 server.close();
29 server.listen(0, common.mustCall(() => {
30 http.get(`http://localhost:${server.address().port}`);
H A Dtest-http-set-header-chain.js11 const server = http.createServer(common.mustCall((req, res) => {
22 server.listen(0, () => {
23 http.get({ port: server.address().port }, common.mustCall((res) => {
26 server.close();
H A Dtest-https-request-arguments.js19 const server = https.createServer(
24 server.close();
28 server.listen(
36 port: server.address().port,
H A Dtest-https-timeout-server.js41 const server = https.createServer(options, common.mustNotCall());
43 server.on('clientError', common.mustCall(function(err, conn) {
48 server.close();
52 server.listen(0, function() {
H A Dtest-https-timeout-server-2.js38 const server = https.createServer(options, common.mustNotCall());
40 server.on('secureConnection', function(cleartext) {
43 server.close();
48 server.listen(0, function() {
H A Dtest-net-connect-call-socket-connect.js29 const server = net.createServer();
31 server.listen(common.mustCall(function() {
32 const port = server.address().port;
37 server.close();
H A Dtest-tls-connect-simple.js38 const server = tls.Server(options, common.mustCall(function(socket) {
40 server.close(common.mustCall());
41 server.on('close', common.mustCall());
45 server.listen(0, function() {
H A Dtest-tls-peer-certificate-multi-keys.js36 const server = tls.createServer(options, function(cleartext) {
40 server.once('secureConnection', common.mustCall(function(socket) {
42 // The server's local cert is the client's peer cert.
49 server.listen(0, common.mustCall(function() {
59 server.close();
H A Dtest-tls-timeout-server.js38 const server = tls.createServer(options, common.mustNotCall());
40 server.on('tlsClientError', common.mustCall(function(err, conn) {
42 server.close();
45 server.listen(0, common.mustCall(function() {
/third_party/openssl/test/
H A Dcipherlist_test.c26 SSL_CTX *server; member
34 SSL_CTX_free(fixture->server); in tear_down()
36 fixture->server = fixture->client = NULL; in tear_down()
48 if (!TEST_ptr(fixture->server = SSL_CTX_new(TLS_server_method())) in set_up()
187 && test_default_cipherlist(fixture->server) in execute_test()
207 if (!TEST_true(SSL_CTX_set_cipher_list(fixture->server, "DEFAULT")) in test_default_cipherlist_explicit()
222 if (!TEST_int_eq(SSL_CTX_set_cipher_list(fixture->server, "no-such"), 0)) in test_default_cipherlist_clear()
/third_party/node/benchmark/http/
H A Dincoming_headers.js13 const server = http.createServer((req, res) => {
17 server.listen(0, () => {
38 port: server.address().port,
40 server.close();
H A Dheaders.js26 const server = http.createServer((req, res) => {
30 server.listen(0, () => {
35 port: server.address().port,
37 server.close();
H A Dchunked.js24 const server = http.createServer((req, res) => {
35 server.listen(0, () => {
39 port: server.address().port,
41 server.close();
/third_party/python/Tools/wasm/
H A Dwasm_webserver.py3 from http import server namespace
9 "--port", type=int, default=8000, help="port for the http server to listen on"
16 class MyHTTPRequestHandler(server.SimpleHTTPRequestHandler):
17 extensions_map = server.SimpleHTTPRequestHandler.extensions_map.copy()
38 server.test(
/third_party/libuv/docs/code/pipe-echo-server/
H A Dmain.c54 void on_new_connection(uv_stream_t *server, int status) { in on_new_connection() argument
62 if (uv_accept(server, (uv_stream_t*) client) == 0) { in on_new_connection()
79 uv_pipe_t server; in main() local
80 uv_pipe_init(loop, &server, 0); in main()
85 if ((r = uv_pipe_bind(&server, PIPENAME))) { in main()
89 if ((r = uv_listen((uv_stream_t*) &server, 128, on_new_connection))) { in main()

Completed in 4 milliseconds

12345678910>>...36