Home
last modified time | relevance | path

Searched refs:client (Results 1 – 25 of 1317) sorted by relevance

12345678910>>...53

/external/libvncserver/libvncclient/
Dvncviewer.c35 static void Dummy(rfbClient* client) { in Dummy() argument
37 static rfbBool DummyPoint(rfbClient* client, int x, int y) { in DummyPoint() argument
40 static void DummyRect(rfbClient* client, int x, int y, int w, int h) { in DummyRect() argument
44 static char* NoPassword(rfbClient* client) { in NoPassword() argument
55 static char* ReadPassword(rfbClient* client) { in ReadPassword() argument
59 return NoPassword(client); in ReadPassword()
84 static rfbBool MallocFrameBuffer(rfbClient* client) { in MallocFrameBuffer() argument
85 if(client->frameBuffer) in MallocFrameBuffer()
86 free(client->frameBuffer); in MallocFrameBuffer()
87 client->frameBuffer=malloc(client->width*client->height*client->format.bitsPerPixel/8); in MallocFrameBuffer()
[all …]
Dtight.c53 (((CARD##bpp)(r) & client->format.redMax) << client->format.redShift | \
54 ((CARD##bpp)(g) & client->format.greenMax) << client->format.greenShift | \
55 ((CARD##bpp)(b) & client->format.blueMax) << client->format.blueShift)
58 ((((CARD##bpp)(r) & 0xFF) * client->format.redMax + 127) / 255 \
59 << client->format.redShift | \
60 (((CARD##bpp)(g) & 0xFF) * client->format.greenMax + 127) / 255 \
61 << client->format.greenShift | \
62 (((CARD##bpp)(b) & 0xFF) * client->format.blueMax + 127) / 255 \
63 << client->format.blueShift)
66 (((uint32_t)(r) & 0xFF) << client->format.redShift | \
[all …]
Dlisten.c47 listenForIncomingConnections(rfbClient* client) in listenForIncomingConnections() argument
57 client->listenSpecified = TRUE; in listenForIncomingConnections()
59 listenSocket = ListenAtTcpPortAndAddress(client->listenPort, client->listenAddress); in listenForIncomingConnections()
65 client->programName,client->listenPort); in listenForIncomingConnections()
67 "a connection comes in.\n", client->programName); in listenForIncomingConnections()
71 if (client->listen6Port > 0) in listenForIncomingConnections()
73 listen6Socket = ListenAtTcpPortAndAddress(client->listen6Port, client->listen6Address); in listenForIncomingConnections()
79 client->programName,client->listenPort); in listenForIncomingConnections()
81 "a connection comes in.\n", client->programName); in listenForIncomingConnections()
104 client->sock = AcceptTcpConnection(client->listenSock); in listenForIncomingConnections()
[all …]
Drfbproto.c108 void rfbClientSetClientData(rfbClient* client, void* tag, void* data) in rfbClientSetClientData() argument
110 rfbClientData* clientData = client->clientData; in rfbClientSetClientData()
116 clientData->next = client->clientData; in rfbClientSetClientData()
117 client->clientData = clientData; in rfbClientSetClientData()
124 void* rfbClientGetClientData(rfbClient* client, void* tag) in rfbClientGetClientData() argument
126 rfbClientData* clientData = client->clientData; in rfbClientGetClientData()
139 static void FillRectangle(rfbClient* client, int x, int y, int w, int h, uint32_t colour) { in FillRectangle() argument
143 for(j=y*client->width;j<(y+h)*client->width;j+=client->width) \ in FillRectangle()
145 ((uint##BPP##_t*)client->frameBuffer)[j+i]=colour; in FillRectangle()
147 switch(client->format.bitsPerPixel) { in FillRectangle()
[all …]
Dultra.c35 HandleUltraBPP (rfbClient* client, int rx, int ry, int rw, int rh) in HandleUltraBPP() argument
42 if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbZlibHeader)) in HandleUltraBPP()
60 if ( client->raw_buffer_size < (int)uncompressedBytes) { in HandleUltraBPP()
61 if ( client->raw_buffer != NULL ) { in HandleUltraBPP()
62 free( client->raw_buffer ); in HandleUltraBPP()
64 client->raw_buffer_size = uncompressedBytes; in HandleUltraBPP()
66 if ((client->raw_buffer_size % 4)!=0) in HandleUltraBPP()
67 client->raw_buffer_size += (4-(client->raw_buffer_size % 4)); in HandleUltraBPP()
68 client->raw_buffer = (char*) malloc( client->raw_buffer_size ); in HandleUltraBPP()
72 if ( client->ultra_buffer_size < toRead ) { in HandleUltraBPP()
[all …]
Dcursor.c32 ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \
33 << client->format.redShift | \
34 (((uint##bpp##_t)(g) & 0xFF) * client->format.greenMax + 127) / 255 \
35 << client->format.greenShift | \
36 (((uint##bpp##_t)(b) & 0xFF) * client->format.blueMax + 127) / 255 \
37 << client->format.blueShift)
46 rfbBool HandleCursorShape(rfbClient* client,int xhot, int yhot, int width, int height, uint32_t enc) in HandleCursorShape() argument
56 bytesPerPixel = client->format.bitsPerPixel / 8; in HandleCursorShape()
64 if(client->rcSource) in HandleCursorShape()
65 free(client->rcSource); in HandleCursorShape()
[all …]
Dzlib.c36 HandleZlibBPP (rfbClient* client, int rx, int ry, int rw, int rh) in HandleZlibBPP() argument
49 if ( client->raw_buffer_size < (( rw * rh ) * ( BPP / 8 ))) { in HandleZlibBPP()
51 if ( client->raw_buffer != NULL ) { in HandleZlibBPP()
53 free( client->raw_buffer ); in HandleZlibBPP()
57 client->raw_buffer_size = (( rw * rh ) * ( BPP / 8 )); in HandleZlibBPP()
58 client->raw_buffer = (char*) malloc( client->raw_buffer_size ); in HandleZlibBPP()
62 if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbZlibHeader)) in HandleZlibBPP()
68 client->decompStream.next_in = ( Bytef * )client->buffer; in HandleZlibBPP()
69 client->decompStream.avail_in = 0; in HandleZlibBPP()
70 client->decompStream.next_out = ( Bytef * )client->raw_buffer; in HandleZlibBPP()
[all …]
Dzrle.c79 static int HandleZRLETile(rfbClient* client,
84 HandleZRLE (rfbClient* client, int rx, int ry, int rw, int rh) in HandleZRLE() argument
98 if ( client->raw_buffer_size < min_buffer_size) { in HandleZRLE()
100 if ( client->raw_buffer != NULL ) { in HandleZRLE()
102 free( client->raw_buffer ); in HandleZRLE()
106 client->raw_buffer_size = min_buffer_size; in HandleZRLE()
107 client->raw_buffer = (char*) malloc( client->raw_buffer_size ); in HandleZRLE()
111 if (!ReadFromRFBServer(client, (char *)&header, sz_rfbZRLEHeader)) in HandleZRLE()
117 client->decompStream.next_in = ( Bytef * )client->buffer; in HandleZRLE()
118 client->decompStream.avail_in = 0; in HandleZRLE()
[all …]
Dtls_gnutls.c90 rfbClient *client = (rfbClient*)transport; in PushTLS() local
95 ret = write(client->sock, data, len); in PushTLS()
112 rfbClient *client = (rfbClient*)transport; in PullTLS() local
117 ret = read(client->sock, data, len); in PullTLS()
131 InitializeTLSSession(rfbClient* client, rfbBool anonTLS) in InitializeTLSSession() argument
136 if (client->tlsSession) return TRUE; in InitializeTLSSession()
138 if ((ret = gnutls_init((gnutls_session_t*)&client->tlsSession, GNUTLS_CLIENT)) < 0) in InitializeTLSSession()
144 if ((ret = gnutls_priority_set_direct((gnutls_session_t)client->tlsSession, in InitializeTLSSession()
150 gnutls_transport_set_ptr((gnutls_session_t)client->tlsSession, (gnutls_transport_ptr_t)client); in InitializeTLSSession()
151 gnutls_transport_set_push_function((gnutls_session_t)client->tlsSession, PushTLS); in InitializeTLSSession()
[all …]
Dtls_openssl.c147 rfbClient *client; in ssl_verify() local
160 client = SSL_CTX_get_app_data (ssl->ctx); in ssl_verify()
235 open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS) in open_ssl_connection() argument
251 SSL_CTX_set_app_data (ssl_ctx, client); in open_ssl_connection()
277 InitializeTLSSession(rfbClient* client, rfbBool anonTLS) in InitializeTLSSession() argument
281 if (client->tlsSession) return TRUE; in InitializeTLSSession()
283 client->tlsSession = open_ssl_connection (client, client->sock, anonTLS); in InitializeTLSSession()
285 if (!client->tlsSession) in InitializeTLSSession()
294 SetTLSAnonCredential(rfbClient* client) in SetTLSAnonCredential() argument
301 HandshakeTLS(rfbClient* client) in HandshakeTLS() argument
[all …]
Dhextile.c33 HandleHextileBPP (rfbClient* client, int rx, int ry, int rw, int rh) in HandleHextileBPP() argument
51 if (!ReadFromRFBServer(client, (char *)&subencoding, 1)) in HandleHextileBPP()
55 if (!ReadFromRFBServer(client, client->buffer, w * h * (BPP / 8))) in HandleHextileBPP()
58 CopyRectangle(client, (uint8_t *)client->buffer, x, y, w, h); in HandleHextileBPP()
64 if (!ReadFromRFBServer(client, (char *)&bg, sizeof(bg))) in HandleHextileBPP()
67 FillRectangle(client, x, y, w, h, bg); in HandleHextileBPP()
70 if (!ReadFromRFBServer(client, (char *)&fg, sizeof(fg))) in HandleHextileBPP()
77 if (!ReadFromRFBServer(client, (char *)&nSubrects, 1)) in HandleHextileBPP()
80 ptr = (uint8_t*)client->buffer; in HandleHextileBPP()
83 if (!ReadFromRFBServer(client, client->buffer, nSubrects * (2 + (BPP / 8)))) in HandleHextileBPP()
[all …]
Dsockets.c74 ReadFromRFBServer(rfbClient* client, char *out, unsigned int n) in ReadFromRFBServer() argument
82 if (client->serverPort==-1) { in ReadFromRFBServer()
84 rfbVNCRec* rec = client->vncRec; in ReadFromRFBServer()
117 if (n <= client->buffered) { in ReadFromRFBServer()
118 memcpy(out, client->bufoutptr, n); in ReadFromRFBServer()
119 client->bufoutptr += n; in ReadFromRFBServer()
120 client->buffered -= n; in ReadFromRFBServer()
127 memcpy(out, client->bufoutptr, client->buffered); in ReadFromRFBServer()
129 out += client->buffered; in ReadFromRFBServer()
130 n -= client->buffered; in ReadFromRFBServer()
[all …]
/external/fio/
Dclient.c28 static void handle_du(struct fio_client *client, struct fio_net_cmd *cmd);
29 static void handle_ts(struct fio_client *client, struct fio_net_cmd *cmd);
30 static void handle_gs(struct fio_client *client, struct fio_net_cmd *cmd);
31 static void handle_probe(struct fio_client *client, struct fio_net_cmd *cmd);
32 static void handle_text(struct fio_client *client, struct fio_net_cmd *cmd);
33 static void handle_stop(struct fio_client *client, struct fio_net_cmd *cmd);
34 static void handle_start(struct fio_client *client, struct fio_net_cmd *cmd);
72 static void fio_client_add_hash(struct fio_client *client) in fio_client_add_hash() argument
74 int bucket = hash_long(client->fd, FIO_CLIENT_HASH_BITS); in fio_client_add_hash()
77 flist_add(&client->hash_list, &client_hash[bucket]); in fio_client_add_hash()
[all …]
/external/libvncserver/rfb/
Drfbclient.h43 (*(char *)&client->endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s))
46 (*(char *)&client->endianTest ? ((((l) & 0xff000000) >> 24) | \
52 (*(char *)&client->endianTest ? ((((l) & 0xff00000000000000ULL) >> 56) | \
150 typedef void (*HandleTextChatProc)(struct _rfbClient* client, int value, char *text);
160 typedef void (*HandleXvpMsgProc)(struct _rfbClient* client, uint8_t version, uint8_t opcode);
161 typedef void (*HandleKeyboardLedStateProc)(struct _rfbClient* client, int value, int pad);
162 typedef rfbBool (*HandleCursorPosProc)(struct _rfbClient* client, int x, int y);
163 typedef void (*SoftCursorLockAreaProc)(struct _rfbClient* client, int x, int y, int w, int h);
164 typedef void (*SoftCursorUnlockScreenProc)(struct _rfbClient* client);
165 typedef void (*GotFrameBufferUpdateProc)(struct _rfbClient* client, int x, int y, int w, int h);
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DOkHttpClientTest.java61 OkHttpClient client = new OkHttpClient(); in timeoutValidRange() local
63 client.setConnectTimeout(1, TimeUnit.NANOSECONDS); in timeoutValidRange()
67 client.setWriteTimeout(1, TimeUnit.NANOSECONDS); in timeoutValidRange()
71 client.setReadTimeout(1, TimeUnit.NANOSECONDS); in timeoutValidRange()
75 client.setConnectTimeout(365, TimeUnit.DAYS); in timeoutValidRange()
79 client.setWriteTimeout(365, TimeUnit.DAYS); in timeoutValidRange()
83 client.setReadTimeout(365, TimeUnit.DAYS); in timeoutValidRange()
90 OkHttpClient client = new OkHttpClient().copyWithDefaults(); in copyWithDefaultsWhenDefaultIsAConstant() local
91 assertNull(client.internalCache()); in copyWithDefaultsWhenDefaultIsAConstant()
92 assertEquals(0, client.getConnectTimeout()); in copyWithDefaultsWhenDefaultIsAConstant()
[all …]
DDispatcherTest.java20 OkHttpClient client = new OkHttpClient().setDispatcher(dispatcher); field in DispatcherTest
44 client.newCall(newRequest("http://a/1")).enqueue(callback); in enqueuedJobsRunImmediately()
50 client.newCall(newRequest("http://a/1")).enqueue(callback); in maxRequestsEnforced()
51 client.newCall(newRequest("http://a/2")).enqueue(callback); in maxRequestsEnforced()
52 client.newCall(newRequest("http://b/1")).enqueue(callback); in maxRequestsEnforced()
53 client.newCall(newRequest("http://b/2")).enqueue(callback); in maxRequestsEnforced()
59 client.newCall(newRequest("http://a/1")).enqueue(callback); in maxPerHostEnforced()
60 client.newCall(newRequest("http://a/2")).enqueue(callback); in maxPerHostEnforced()
61 client.newCall(newRequest("http://a/3")).enqueue(callback); in maxPerHostEnforced()
67 client.newCall(newRequest("http://a/1")).enqueue(callback); in increasingMaxRequestsPromotesJobsImmediately()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DURLConnectionTest.java123 private OkUrlFactory client; field in URLConnectionTest
129 client = new OkUrlFactory(new OkHttpClient()); in setUp()
149 connection = client.open(server.getUrl("/")); in requestHeaders()
208 connection = client.open(server.getUrl("/")); in getRequestPropertyReturnsLastValue()
221 connection = client.open(server.getUrl("/")); in responseHeaders()
250 connection = client.open(server.getUrl("/")); in serverSendsInvalidResponseHeaders()
261 connection = client.open(server.getUrl("/")); in serverSendsInvalidCodeTooLarge()
272 connection = client.open(server.getUrl("/")); in serverSendsInvalidCodeNotANumber()
283 connection = client.open(server.getUrl("/")); in serverSendsUnnecessaryWhitespace()
295 connection = client.open(url); in connectRetriesUntilConnectedOrFailed()
[all …]
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DRealWebSocketTest.java46 private RealWebSocket client; field in RealWebSocketTest
61 client = new RealWebSocket(true, server2client, client2Server, random, clientExecutor, in setUp()
83 client.sendMessage(TEXT, new Buffer().writeUtf8("Hello!")); in textMessage()
89 client.sendMessage(BINARY, new Buffer().writeUtf8("Hello!")); in binaryMessage()
95 BufferedSink sink = client.newMessageSink(TEXT); in streamingMessage()
104 BufferedSink sink = client.newMessageSink(TEXT); in streamingMessageCanInterleavePing()
106 client.sendPing(new Buffer().writeUtf8("Pong?")); in streamingMessageCanInterleavePing()
112 client.readMessage(); in streamingMessageCanInterleavePing()
117 client.sendPing(new Buffer().writeUtf8("Hello!")); in pingWritesPong()
120 client.readMessage(); // Read the pong. in pingWritesPong()
[all …]
/external/libvncserver/client_examples/
Dbackchannel.c12 static void HandleRect(rfbClient* client, int x, int y, int w, int h) { in HandleRect() argument
29 static void sendMessage(rfbClient* client, char* text) in sendMessage() argument
36 if(!WriteToRFBServer(client, (char*)&msg, sizeof(msg)) || in sendMessage()
37 !WriteToRFBServer(client, text, length)) { in sendMessage()
42 static rfbBool handleBackChannelMessage(rfbClient* client, in handleBackChannelMessage() argument
51 rfbClientSetClientData(client, sendMessage, sendMessage); in handleBackChannelMessage()
53 if(!ReadFromRFBServer(client, ((char*)&msg)+1, sizeof(msg)-1)) in handleBackChannelMessage()
57 if(!ReadFromRFBServer(client, text, msg.size)) { in handleBackChannelMessage()
80 rfbClient* client = rfbGetClient(8,3,4); in main() local
82 client->GotFrameBufferUpdate = HandleRect; in main()
[all …]
Dppmtest.c12 static void PrintRect(rfbClient* client, int x, int y, int w, int h) { in PrintRect() argument
16 static void SaveFramebufferAsPPM(rfbClient* client, int x, int y, int w, int h) { in SaveFramebufferAsPPM() argument
20 rfbPixelFormat* pf=&client->format; in SaveFramebufferAsPPM()
22 int row_stride=client->width*bpp; in SaveFramebufferAsPPM()
43 fprintf(f,"P6\n# %s\n%d %d\n255\n",client->desktopName,client->width,client->height); in SaveFramebufferAsPPM()
44 for(j=0;j<client->height*row_stride;j+=row_stride) in SaveFramebufferAsPPM()
45 for(i=0;i<client->width*bpp;i+=bpp) { in SaveFramebufferAsPPM()
46 unsigned char* p=client->frameBuffer+j+i; in SaveFramebufferAsPPM()
64 rfbClient* client = rfbGetClient(8,3,4); in main() local
68 client->GotFrameBufferUpdate = PrintRect; in main()
[all …]
DSDLvncviewer.c30 static rfbBool resize(rfbClient* client) { in resize() argument
31 int width=client->width,height=client->height, in resize()
32 depth=client->format.bitsPerPixel; in resize()
37 client->updateRect.x = client->updateRect.y = 0; in resize()
38 client->updateRect.w = width; client->updateRect.h = height; in resize()
45 rfbClientSetClientData(client, SDL_Init, sdl); in resize()
46 client->width = sdl->pitch / (depth / 8); in resize()
48 free(client->frameBuffer); in resize()
51 client->frameBuffer=sdl->pixels; in resize()
53 client->format.bitsPerPixel=depth; in resize()
[all …]
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/
DHttpClient4.java17 package net.oauth.client.httpclient4;
23 import net.oauth.client.ExcerptInputStream;
27 import org.apache.http.client.HttpClient;
28 import org.apache.http.client.methods.HttpDelete;
29 import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
30 import org.apache.http.client.methods.HttpGet;
31 import org.apache.http.client.methods.HttpPost;
32 import org.apache.http.client.methods.HttpPut;
33 import org.apache.http.client.methods.HttpRequestBase;
34 import org.apache.http.client.params.ClientPNames;
[all …]
/external/libvncserver/test/
Dencodingstest.c10 #error This test need pthread support (otherwise the client blocks the client)
73 static rfbBool doFramebuffersMatch(rfbScreenInfo* server,rfbClient* client, in doFramebuffersMatch() argument
78 if(server->width!=client->width || server->height!=client->height) in doFramebuffersMatch()
86 unsigned char cl=client->frameBuffer[k+i*4+j*client->width*4]; in doFramebuffersMatch()
118 static void update(rfbClient* client,int x,int y,int w,int h) { in update() argument
127 clientData* cd=(clientData*)client->clientData; in update()
134 static void update_finished(rfbClient* client) { in update_finished() argument
135 clientData* cd=(clientData*)client->clientData; in update_finished()
147 !doFramebuffersMatch(cd->server,client,maxDelta)); in update_finished()
152 rfbClient* client=(rfbClient*)data; in clientLoop() local
[all …]
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java89 private final OkUrlFactory client = new OkUrlFactory(new OkHttpClient()); field in UrlConnectionCacheTest
100 client.client().setCache(cache); in setUp()
110 assertSame(cache, client.client().getCache()); in responseCacheAccessWithOkHttpMember()
188 HttpURLConnection conn = client.open(url); in assertCached()
229 HttpURLConnection urlConnection = client.open(server.getUrl("/")); in testResponseCaching()
239 urlConnection = client.open(server.getUrl("/")); // cached! in testResponseCaching()
260 HttpsURLConnection c1 = (HttpsURLConnection) client.open(server.getUrl("/")); in secureResponseCaching()
272 HttpsURLConnection c2 = (HttpsURLConnection) client.open(server.getUrl("/")); // cached! in secureResponseCaching()
298 HttpURLConnection connection = client.open(server.getUrl("/")); in responseCachingAndRedirects()
301 connection = client.open(server.getUrl("/")); // cached! in responseCachingAndRedirects()
[all …]
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DSSLServerSocketImplTest.java56 Client client = null; in testSSLServerSocketImpl1() local
76 client = new Client(ssocket.getLocalPort()); in testSSLServerSocketImpl1()
77 client.start(); in testSSLServerSocketImpl1()
80 while (!client.handshakeStarted()) { in testSSLServerSocketImpl1()
89 client.close(); in testSSLServerSocketImpl1()
100 if (client != null) { in testSSLServerSocketImpl1()
102 client.close(); in testSSLServerSocketImpl1()
120 Client client = null; in testSSLServerSocketImpl2() local
140 client = new Client(ssocket.getLocalPort()); in testSSLServerSocketImpl2()
141 client.start(); in testSSLServerSocketImpl2()
[all …]

12345678910>>...53