Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 12 of 12) sorted by relevance

/thrift-3.4.0/lib/go/thrift/
Dsocket.go29 conn *socketConn member
95 func NewTSocketFromConnConf(conn net.Conn, conf *TConfiguration) *TSocket {
97 conn: wrapSocketConn(conn),
98 addr: conn.RemoteAddr(),
104 func NewTSocketFromConnTimeout(conn net.Conn, socketTimeout time.Duration) *TSocket {
105 return NewTSocketFromConnConf(conn, &TConfiguration{
147 p.conn.SetDeadline(t)
149 p.conn.SetReadDeadline(t)
151 p.conn.SetWriteDeadline(t)
157 if p.conn.isValid() {
[all …]
Dssl_socket.go30 conn *socketConn member
103 func NewTSSLSocketFromConnConf(conn net.Conn, conf *TConfiguration) *TSSLSocket {
105 conn: wrapSocketConn(conn),
106 addr: conn.RemoteAddr(),
112 func NewTSSLSocketFromConnTimeout(conn net.Conn, cfg *tls.Config, socketTimeout time.Duration) *TSS…
113 return NewTSSLSocketFromConnConf(conn, &TConfiguration{
152 p.conn.SetDeadline(t)
154 p.conn.SetReadDeadline(t)
156 p.conn.SetWriteDeadline(t)
166 if p.conn, err = createSocketConnFromReturn(tls.DialWithDialer(
[all …]
Dsocket_conn.go40 func createSocketConnFromReturn(conn net.Conn, err error) (*socketConn, error) {
45 Conn: conn,
50 func wrapSocketConn(conn net.Conn) *socketConn {
53 if sc, ok := conn.(*socketConn); ok {
58 Conn: conn,
Dsimple_server_test.go183 conn, err := ln.Accept()
188 return NewTSocketFromConnConf(conn, nil), nil
246 conn, err := ln.Accept()
251 return NewTSocketFromConnConf(conn, conf), nil
Dssl_server_socket.go70 conn, err := p.listener.Accept()
74 return NewTSSLSocketFromConnTimeout(conn, p.cfg, p.clientTimeout), nil
Dserver_socket.go85 conn, err := listener.Accept()
89 return NewTSocketFromConnTimeout(conn, p.clientTimeout), nil
/thrift-3.4.0/tutorial/js/src/
DHttpd.java247 DefaultHttpServerConnection conn = new DefaultHttpServerConnection(); in run() local
249 conn.bind(socket, this.params); in run()
252 Thread t = new WorkerThread(this.httpService, conn); in run()
268 private final HttpServerConnection conn; field in Httpd.WorkerThread
270 public WorkerThread(final HttpService httpservice, final HttpServerConnection conn) { in WorkerThread() argument
273 this.conn = conn; in WorkerThread()
280 while (!Thread.interrupted() && this.conn.isOpen()) { in run()
281 this.httpservice.handleRequest(this.conn, context); in run()
291 this.conn.shutdown(); in run()
/thrift-3.4.0/lib/js/test/src/test/
DHttpd.java271 DefaultHttpServerConnection conn = new DefaultHttpServerConnection(); in run() local
273 conn.bind(socket, this.params); in run()
276 Thread t = new WorkerThread(this.httpService, conn); in run()
292 private final HttpServerConnection conn; field in Httpd.WorkerThread
294 public WorkerThread(final HttpService httpservice, final HttpServerConnection conn) { in WorkerThread() argument
297 this.conn = conn; in WorkerThread()
304 while (!Thread.interrupted() && this.conn.isOpen()) { in run()
305 this.httpservice.handleRequest(this.conn, context); in run()
315 this.conn.shutdown(); in run()
/thrift-3.4.0/tutorial/py.twisted/
DPythonClient.py77 d.addCallback(lambda conn: conn.client)
/thrift-3.4.0/lib/d/src/thrift/server/
Dnonblocking.d424 Connection conn = void; in acceptConnections() local
440 conn = new Connection(clientSocket, loop); in acceptConnections()
444 GC.addRoot(cast(void*)conn); in acceptConnections()
446 conn = connectionStack_[$ - 1]; in acceptConnections()
449 conn.init(clientSocket, loop); in acceptConnections()
462 conn.transition(); in acceptConnections()
464 loop.notifyCompleted(conn); in acceptConnections()
685 void disposeConnection(Connection conn) { in disposeConnection() argument
686 server_.disposeConnection(conn); in disposeConnection()
703 void notifyCompleted(Connection conn) { in notifyCompleted() argument
[all …]
/thrift-3.4.0/lib/cpp/src/thrift/server/
DTNonblockingServer.cpp1301 bool TNonblockingIOThread::notify(TNonblockingServer::TConnection* conn) { in createNotificationPipe() argument
1308 long kSize = sizeof(conn); in createNotificationPipe()
1309 const char * pos = (const char *)const_cast_sockopt(&conn); in createNotificationPipe()
DTNonblockingServer.h771 bool notify(TNonblockingServer::TConnection* conn);