100+ results for 'socket'
Not the results you expected?
https.d.ts (https://gitlab.com/girmayegebremedhin/student_managment) TypeScript Typings · 156 lines
48 addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
49 addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
50 addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
51 addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
95 on(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
96 once(event: string, listener: (...args: any[]) => void): this;
97 once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
98 once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
99 once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
129 prependListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
130 prependOnceListener(event: string, listener: (...args: any[]) => void): this;
131 prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
132 prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
133 prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
135 prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
136 prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
137 prependOnceListener(event: 'close', listener: () => void): this;
138 prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this;
Krb5AndCertsSslSocketConnector.Krb5SslFilter.html (https://gitlab.com/essere.lab.public/qualitas.class-corpus) HTML · 144 lines
5 <!-- Generated by javadoc (build 1.6.0_31) on Thu Jan 31 02:05:00 UTC 2013 -->
6 <TITLE>
7 Uses of Class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter (Hadoop 1.1.2 API)
8 </TITLE>
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="Uses of Class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter (Hadoop 1.1.2 API)";
19 }
20 }
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/hadoop/security/Krb5AndCertsSslSocketConnector.Krb5SslFilter.html" title="class in org.apache.hadoop.security"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
core-connection.h (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) C Header · 169 lines
40 * set.
41 */
42 SyncSocket* core_connection_open_socket(SockAddress* sockaddr);
44 /* Creates descriptor for a console client.
45 * Param:
46 * console_socket Socket address for the console.
47 * Return:
48 * Allocated and initialized descriptor for the client on success, or NULL
125 /* Creates a console client, and switches it to a given stream.
126 * console_socket Socket address for the console.
127 * stream_name Name of the stream to switch to.
128 * handshake Address of a string to allocate for a handshake message on
index.js (https://gitlab.com/Seregin/skb3) JavaScript · 328 lines
qabstractsocketengine.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 268 lines
100 }
102 QAbstractSocketEngine *QAbstractSocketEngine::createSocketEngine(QAbstractSocket::SocketType socketType, const QNetworkProxy &proxy, QObject *parent)
103 {
104 #ifndef QT_NO_NETWORKPROXY
111 for (int i = 0; i < socketHandlers()->size(); i++) {
112 if (QAbstractSocketEngine *ret = socketHandlers()->at(i)->createSocketEngine(socketType, proxy, parent))
113 return ret;
114 }
132 for (int i = 0; i < socketHandlers()->size(); i++) {
133 if (QAbstractSocketEngine *ret = socketHandlers()->at(i)->createSocketEngine(socketDescripter, parent))
134 return ret;
135 }
211 }
213 void QAbstractSocketEngine::setSocketType(QAbstractSocket::SocketType socketType)
214 {
215 d_func()->socketType = socketType;
client.js (https://gitlab.com/oytunistrator/x3dom) JavaScript · 495 lines
MemoryFileSystem.js (https://gitlab.com/ricky1477/twitter-clone) JavaScript · 225 lines
CompositeX509KeyManager.scala (https://gitlab.com/KiaraGrouwstra/playframework) Scala · 165 lines
9 import java.security.{ Principal, PrivateKey }
10 import java.security.cert.{ CertificateException, X509Certificate }
11 import java.net.Socket
12 import scala.collection.mutable.ArrayBuffer
46 }
48 def chooseClientAlias(keyType: Array[String], issuers: Array[Principal], socket: Socket): String = {
49 logger.debug(s"chooseClientAlias: keyType = ${keyType.toSeq}, issuers = ${issuers.toSeq}, socket = $socket")
51 withKeyManagers { keyManager =>
52 val clientAlias = keyManager.chooseClientAlias(keyType, issuers, socket)
53 if (clientAlias != null) {
54 logger.debug(s"chooseClientAlias: using clientAlias $clientAlias with keyManager $keyManager")
109 }
111 def chooseServerAlias(keyType: String, issuers: Array[Principal], socket: Socket): String = {
112 logger.debug(s"chooseServerAlias: keyType = $keyType, issuers = ${issuers.toSeq}, socket = $socket")
WebSocketClientHandshakerFactory.java (https://gitlab.com/taichu/netty) Java · 132 lines
20 import java.net.URI;
22 import static io.netty.handler.codec.http.websocketx.WebSocketVersion.*;
24 /**
50 public static WebSocketClientHandshaker newHandshaker(
51 URI webSocketURL, WebSocketVersion version, String subprotocol,
52 boolean allowExtensions, HttpHeaders customHeaders) {
53 return newHandshaker(webSocketURL, version, subprotocol, allowExtensions, customHeaders, 65536);
74 public static WebSocketClientHandshaker newHandshaker(
75 URI webSocketURL, WebSocketVersion version, String subprotocol,
76 boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength) {
77 return newHandshaker(webSocketURL, version, subprotocol, allowExtensions, customHeaders,
106 public static WebSocketClientHandshaker newHandshaker(
107 URI webSocketURL, WebSocketVersion version, String subprotocol,
108 boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength,
109 boolean performMasking, boolean allowMaskMismatch) {
client.rb (https://gitlab.com/alx741/metasploit-framework) Ruby · 219 lines
4 require 'rex/proto/iax2/call'
6 require 'rex/socket'
7 require 'thread'
8 require 'digest/md5'
37 self.debugging = opts[:debugging]
39 self.sock = Rex::Socket::Udp.create(
40 'PeerHost' => self.server_host,
41 'PeerPort' => self.server_port,
43 )
45 self.monitor = ::Thread.new { monitor_socket }
47 self.src_call_idx = 0
TrustingOkHttpClient.java (https://gitlab.com/samuel-davis/DDF-TestSource) Java · 175 lines
22 import javax.net.ssl.SSLContext;
23 import javax.net.ssl.SSLSession;
24 import javax.net.ssl.SSLSocketFactory;
25 import javax.net.ssl.TrustManager;
26 import javax.net.ssl.X509TrustManager;
84 // Create an ssl socket factory with our all-trusting manager
85 final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
87 OkHttpClient.Builder builder = new OkHttpClient.Builder();
89 builder.sslSocketFactory(sslSocketFactory);
91 HostnameVerifier hostnameVerifier =
AwsIotMqttConnection.java (https://gitlab.com/github-cloud-corp/aws-iot-device-sdk-java) Java · 170 lines
45 public class AwsIotMqttConnection extends AwsIotConnection {
47 private final SocketFactory socketFactory;
49 private MqttAsyncClient mqttClient;
52 private Set<String> serverUris;
54 public AwsIotMqttConnection(AbstractAwsIotClient client, SocketFactory socketFactory, String serverUri)
55 throws AWSIotException {
56 super(client);
58 this.socketFactory = socketFactory;
60 messageListener = new AwsIotMqttMessageListener(client);
shepherd.scm (https://gitlab.com/janneke/guix) Scheme · 157 lines
101 (or (getenv "XDG_RUNTIME_DIR")
102 (format #f "/run/user/~a" (getuid)))
103 "/shepherd/socket"))
104 (let ((log-dir (or (getenv "XDG_LOG_HOME")
105 (format #f "~a/.local/var/log"
127 (or (getenv "XDG_RUNTIME_DIR")
128 (format #f "/run/user/~a" (getuid)))
129 "/shepherd/socket"))
130 #$(reload-configuration-gexp config)
131 #$(launch-shepherd-gexp config)))
syscall_linux_riscv64.go (https://gitlab.com/ipernet/gitlab-shell) Go · 209 lines
80 //sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
81 //sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
82 //sysnb socket(domain int, typ int, proto int) (fd int, err error)
83 //sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
WebsocketComponentAutoConfiguration.java (https://gitlab.com/matticala/apache-camel) Java · 129 lines
15 * limitations under the License.
16 */
17 package org.apache.camel.component.atmosphere.websocket.springboot;
19 import java.util.HashMap;
22 import javax.annotation.Generated;
23 import org.apache.camel.CamelContext;
24 import org.apache.camel.component.atmosphere.websocket.WebsocketComponent;
25 import org.apache.camel.spi.ComponentCustomizer;
26 import org.apache.camel.spi.HasId;
57 WebsocketComponentConfiguration.class})
58 public class WebsocketComponentAutoConfiguration {
60 private static final Logger LOGGER = LoggerFactory
79 @ConditionalOnMissingBean(WebsocketComponent.class)
80 public WebsocketComponent configureWebsocketComponent() throws Exception {
81 WebsocketComponent component = new WebsocketComponent();
gNET.cpp (https://gitlab.com/xKIVIx/My_Game) C++ · 260 lines
9 if (WSAStartup(MAKEWORD(2, 2), &wsa_data_)!=0)
10 {
11 LogSend(LOG_CRITICAL_ERROR, "gNET", "Can`t init socket API");
12 return;
13 }
14 // init output socket
15 output_sock_ = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
16 if (output_sock_ == INVALID_SOCKET)
17 {
18 LogSend(LOG_CRITICAL_ERROR, "gNET", "Can`t init output socket");
20 return;
21 }
22 // init input socket
23 input_sock_ = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
signalr-tests.ts (https://gitlab.com/CatchLabs/DefinitelyTyped) TypeScript · 197 lines
21 $.connection.hub.qs = { 'version': '1.0' };
22 $.connection.hub.start({ transport: 'longPolling' });
23 $.connection.hub.start({ transport: ['webSockets', 'longPolling'] });
24 connection.start({ transport: 'longPolling' });
25 connection.start({ transport: ['webSockets', 'longPolling'] });
78 });
79 connection.start({ transport: 'longPolling' });
80 connection.start({ transport: $.signalR.transports.webSockets });
81 connection.start({ transport: ['longPolling', 'webSockets'] });
namequery.c (https://gitlab.com/miztake/samba) C · 234 lines
23 #include "../libcli/nbt/libnbt.h"
24 #include "../libcli/nbt/nbt_proto.h"
25 #include "lib/socket/socket.h"
27 /**
28 send a nbt name query
29 */
30 _PUBLIC_ struct nbt_name_request *nbt_name_query_send(struct nbt_name_socket *nbtsock,
31 struct nbt_name_query *io)
32 {
33 struct nbt_name_request *req;
34 struct nbt_name_packet *packet;
35 struct socket_address *dest;
37 packet = talloc_zero(nbtsock, struct nbt_name_packet);
WebSocketInterceptor.js (https://gitlab.com/_bogdanova/up2u) JavaScript · 219 lines
11 'use strict';
13 const RCTWebSocketModule = require('NativeModules').WebSocketModule;
14 const NativeEventEmitter = require('NativeEventEmitter');
15 const base64 = require('base64-js');
17 const originalRCTWebSocketConnect = RCTWebSocketModule.connect;
18 const originalRCTWebSocketSend = RCTWebSocketModule.send;
19 const originalRCTWebSocketSendBinary = RCTWebSocketModule.sendBinary;
20 const originalRCTWebSocketClose = RCTWebSocketModule.close;
140 // to intercept the request url, protocols, options and socketId,
141 // then pass them through the `connectCallback`.
142 RCTWebSocketModule.connect = function(url, protocols, options, socketId) {
143 if (connectCallback) {
144 connectCallback(url, protocols, options, socketId);
Message.h (https://gitlab.com/edelmaks/iOS-iphoneheaders) C Header · 147 lines
namespace.test.js (https://gitlab.com/ad-si-2016-2/p3-g3) JavaScript · 286 lines
10 */
12 var sio = require('socket.io')
13 , should = require('./common')
14 , ports = 15700;
34 cl.handshake(function (sid) {
35 ws = websocket(cl, sid);
36 ws.on('open', function () {
37 ws.packet({
115 fn(null, false);
116 })
117 .on('connection', function (socket) {
118 throw new Error('Should not be called');
119 });
255 io.set('blacklist', ['foobar']);
257 io.sockets.on('connection', function (socket) {
258 socket.on('foobar', function () {
command_test.go (https://gitlab.com/shaneutt/gitlab-shell) Go · 302 lines
io.hpp (https://gitlab.com/wilane/mesos) C++ Header · 189 lines
97 * @return The number of bytes written.
98 * A failure will be returned if an error is detected.
99 * If writing to a socket or pipe, an error will be returned if the
100 * the read end of the socket or pipe has been closed.
146 *
147 * TODO(hartem): This function will currently return an error if fd
148 * is not a socket descriptor. Chnages need to be made to support
149 * ordinary files and pipes as well.
150 *
151 * @param fd socket descriptor.
152 * @param data buffer to which peek'd bytes will be copied.
153 * @param size size of the buffer.
177 * (introduced in 3.4 kernels) becomes universally available.
178 *
179 * @param fd socket descriptor.
180 * @param limit maximum number of bytes to peek.
181 * @return Peeked bytes.
connect.hpp (https://gitlab.com/Teo-Mirror/AtomicGameEngine) C++ Header · 428 lines
87 template <typename Protocol, typename SocketService,
88 typename Iterator, typename ConnectCondition>
89 inline Iterator connect(basic_socket<Protocol, SocketService>& s,
90 Iterator begin, ConnectCondition connect_condition,
91 asio::error_code& ec)
260 //private:
261 basic_socket<Protocol, SocketService>& socket_;
262 Iterator iter_;
263 Iterator end_;
323 inline ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler,
324 void (asio::error_code, Iterator))
325 async_connect(basic_socket<Protocol, SocketService>& s,
326 Iterator begin, ASIO_MOVE_ARG(ComposedConnectHandler) handler)
327 {
socket_option.hpp (https://gitlab.com/Sarahma/Installation-Requirements) C++ Header · 568 lines
1 //
2 // detail/socket_option.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~
4 //
9 //
11 #ifndef BOOST_ASIO_IP_DETAIL_SOCKET_OPTION_HPP
12 #define BOOST_ASIO_IP_DETAIL_SOCKET_OPTION_HPP
20 #include <cstring>
21 #include <stdexcept>
22 #include <boost/asio/detail/socket_ops.hpp>
23 #include <boost/asio/detail/socket_types.hpp>
31 namespace ip {
32 namespace detail {
33 namespace socket_option {
35 // Helper template for implementing multicast enable loopback options.
amqplib.d.ts (https://gitlab.com/CatchLabs/DefinitelyTyped) TypeScript Typings · 219 lines
151 }
153 function connect(url: string, socketOptions?: any): when.Promise<Connection>;
154 }
216 function connect(callback: (err: any, connection: Connection) => void): void;
217 function connect(url: string, callback: (err: any, connection: Connection) => void): void;
218 function connect(url: string, socketOptions: any, callback: (err: any, connection: Connection) => void): void;
219 }
reverseproxy_test.go (https://gitlab.com/caddy/caddy) Go · 491 lines
90 return
91 }
92 // a hack to get a file name within a valid path to use as socket
93 socketName := f.Name()
100 }
102 unixListener, err := net.Listen("unix", socketName)
103 if err != nil {
104 t.Errorf("failed to listen on the socket: %s", err)
147 return
148 }
149 req.Header.Set("X-Caddy-Upstream-Dial", socketName)
150 tester.AssertResponse(req, 200, "Hello, World!")
151 }
382 }
384 func TestReverseProxyHealthCheckUnixSocket(t *testing.T) {
385 if runtime.GOOS == "windows" {
386 t.SkipNow()
SOCK_Acceptor.cpp (https://gitlab.com/mohsencs/JadeCore548) C++ · 406 lines
6 #include "ace/OS_Errno.h"
7 #include "ace/OS_NS_string.h"
8 #include "ace/OS_NS_sys_socket.h"
9 #include "ace/os_include/os_fcntl.h"
92 if (reset_new_handle)
93 // Reset the event association inherited by the new handle.
94 ::WSAEventSelect ((SOCKET) new_handle, 0, 0);
95 #else
96 ACE_UNUSED_ARG (reset_new_handle);
199 // Reset the size of the addr, which is only necessary for UNIX
200 // domain sockets.
201 if (new_stream.get_handle () != ACE_INVALID_HANDLE
202 && remote_addr != 0)
test_gem_server.rb (https://gitlab.com/jslee1/rubygems) Ruby · 409 lines
dsgetdc.h (https://gitlab.com/ubuntu-trusty/mingw-w64) C Header · 187 lines
104 #define DsAddressToSiteNamesEx __MINGW_NAME_AW(DsAddressToSiteNamesEx)
106 DSGETDCAPI DWORD WINAPI DsAddressToSiteNamesW(LPCWSTR ComputerName,DWORD EntryCount,PSOCKET_ADDRESS SocketAddresses,LPWSTR **SiteNames);
107 DSGETDCAPI DWORD WINAPI DsAddressToSiteNamesA(LPCSTR ComputerName,DWORD EntryCount,PSOCKET_ADDRESS SocketAddresses,LPSTR **SiteNames);
108 DSGETDCAPI DWORD WINAPI DsAddressToSiteNamesExW(LPCWSTR ComputerName,DWORD EntryCount,PSOCKET_ADDRESS SocketAddresses,LPWSTR **SiteNames,LPWSTR **SubnetNames);
109 DSGETDCAPI DWORD WINAPI DsAddressToSiteNamesExA(LPCSTR ComputerName,DWORD EntryCount,PSOCKET_ADDRESS SocketAddresses,LPSTR **SiteNames,LPSTR **SubnetNames);
177 DSGETDCAPI DWORD WINAPI DsGetDcOpenW(LPCWSTR DnsName,ULONG OptionFlags,LPCWSTR SiteName,GUID *DomainGuid,LPCWSTR DnsForestName,ULONG DcFlags,PHANDLE RetGetDcContext);
178 DSGETDCAPI DWORD WINAPI DsGetDcOpenA(LPCSTR DnsName,ULONG OptionFlags,LPCSTR SiteName,GUID *DomainGuid,LPCSTR DnsForestName,ULONG DcFlags,PHANDLE RetGetDcContext);
179 DSGETDCAPI DWORD WINAPI DsGetDcNextW(HANDLE GetDcContextHandle,PULONG SockAddressCount,LPSOCKET_ADDRESS *SockAddresses,LPWSTR *DnsHostName);
180 DSGETDCAPI DWORD WINAPI DsGetDcNextA(HANDLE GetDcContextHandle,PULONG SockAddressCount,LPSOCKET_ADDRESS *SockAddresses,LPSTR *DnsHostName);
pathnames.h (https://gitlab.com/adam.lukaitis/Win32-OpenSSH) C Header · 215 lines
JSEventTarget.cpp (https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk) C++ · 243 lines
network.c (https://gitlab.com/matt81093/Darwinia-and-Multiwinia-Source-Code) C · 278 lines
8 #include <sys/time.h>
9 #include <sys/wait.h>
10 #include <sys/socket.h>
11 #include <netinet/in.h>
12 #include <arpa/inet.h>
105 socka.sin_family = AF_INET;
107 /* Now try to create a socket and connect */
108 #ifdef TEST_MAIN
109 printf("Connecting to remote host [%s]\n", host);
110 #endif
111 sock = socket(AF_INET, SOCK_STREAM, 0);
112 if ( sock < 0 ) {
113 #ifdef TEST_MAIN
prometheus_client_spec.rb (https://gitlab.com/espadav8/gitlab-ce) Ruby · 191 lines
gitlab-workhorse_spec.rb (https://gitlab.com/jgsqware/omnibus-gitlab) Ruby · 197 lines
97 context 'with default values for redis' do
98 it 'should generate config file' do
99 content_url = 'URL = "unix:/var/opt/gitlab/redis/redis.socket"'
100 expect(chef_run).to render_file("/var/opt/gitlab/gitlab-workhorse/config.toml").with_content(content_url)
101 expect(chef_run).not_to render_file("/var/opt/gitlab/gitlab-workhorse/config.toml").with_content(/Sentinel/)
107 end
109 context 'with host/port/password values for redis specified and socket disabled' do
110 before do
111 stub_gitlab_rb(
132 context 'with socket for redis specified' do
133 before do
134 stub_gitlab_rb(gitlab_rails: { redis_socket: "/home/random/path.socket", redis_password: 'examplepassword' })
135 end
raw_socket_service.hpp (https://gitlab.com/fengluo/gba4ios) C++ Header · 378 lines
1 //
2 // raw_socket_service.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~
4 //
9 //
11 #ifndef BOOST_ASIO_RAW_SOCKET_SERVICE_HPP
12 #define BOOST_ASIO_RAW_SOCKET_SERVICE_HPP
23 #if defined(BOOST_ASIO_HAS_IOCP)
24 # include <boost/asio/detail/win_iocp_socket_service.hpp>
25 #else
26 # include <boost/asio/detail/reactive_socket_service.hpp>
131 }
133 /// Assign an existing native socket to a raw socket.
134 boost::system::error_code assign(implementation_type& impl,
135 const protocol_type& protocol, const native_handle_type& native_socket,
rose_link.c (https://gitlab.com/envieidoc/sprd_project) C · 291 lines
9 #include <linux/errno.h>
10 #include <linux/types.h>
11 #include <linux/socket.h>
12 #include <linux/in.h>
13 #include <linux/kernel.h>
234 /*
235 * This routine is called when a Clear Request is needed outside of the context
236 * of a connected socket.
237 */
238 void rose_transmit_clear_request(struct rose_neigh *neigh, unsigned int lci, unsigned char cause, unsigned char diagnostic)
HAProxyProxiedProtocol.java (https://gitlab.com/taichu/netty) Java · 239 lines
43 UDP6(TPAF_UDP6_BYTE, AddressFamily.AF_IPv6, TransportProtocol.DGRAM),
44 /**
45 * The UNIX_STREAM represents a connection which was forwarded for a UNIX stream socket.
46 */
47 UNIX_STREAM(TPAF_UNIX_STREAM_BYTE, AddressFamily.AF_UNIX, TransportProtocol.STREAM),
48 /**
49 * The UNIX_DGRAM represents a connection which was forwarded for a UNIX datagram socket.
50 */
51 UNIX_DGRAM(TPAF_UNIX_DGRAM_BYTE, AddressFamily.AF_UNIX, TransportProtocol.DGRAM);
133 AF_IPv6(AF_IPV6_BYTE),
134 /**
135 * The UNIX address family represents a connection which was forwarded for a unix socket.
136 */
137 AF_UNIX(AF_UNIX_BYTE);
xinetd.vim (https://gitlab.com/shinvdu/vim_win_config) Vim Script · 347 lines
74 syn keyword xinetdBoolean contained yes no
76 syn keyword xinetdReqAttribute contained socket_type
77 \ nextgroup=xinetdSocketTypeEq skipwhite
79 syn match xinetdSocketTypeEq contained display '='
80 \ nextgroup=xinetdSocketType skipwhite
82 syn keyword xinetdSocketType contained stream dgram raw seqpacket
84 syn keyword xinetdReqAttribute contained wait
293 hi def link xinetdBooleanEq xinetdEq
294 hi def link xinetdBoolean Boolean
295 hi def link xinetdSocketTypeEq xinetdEq
296 hi def link xinetdSocketType xinetdType
repmgr_ext.h (https://gitlab.com/OpenSourceMirror/sourcenav) C Header · 145 lines
50 int __repmgr_thread_start __P((ENV *, REPMGR_RUNNABLE *));
51 int __repmgr_thread_join __P((REPMGR_RUNNABLE *));
52 int __repmgr_set_nonblocking __P((socket_t));
53 int __repmgr_wake_waiting_senders __P((ENV *));
54 int __repmgr_await_ack __P((ENV *, const DB_LSN *));
66 int __repmgr_signal __P((cond_var_t *));
67 int __repmgr_wake_main_thread __P((ENV*));
68 int __repmgr_writev __P((socket_t, db_iovec_t *, int, size_t *));
69 int __repmgr_readv __P((socket_t, db_iovec_t *, int, size_t *));
117 int __repmgr_schedule_connection_attempt __P((ENV *, u_int, int));
118 void __repmgr_reset_for_reading __P((REPMGR_CONNECTION *));
119 int __repmgr_new_connection __P((ENV *, REPMGR_CONNECTION **, socket_t, int));
120 int __repmgr_new_site __P((ENV *, REPMGR_SITE**, const char *, u_int, int));
121 void __repmgr_cleanup_netaddr __P((ENV *, repmgr_netaddr_t *));
sap.js (https://gitlab.com/admin-github-cloud/jalangi2) JavaScript · 460 lines
132 if(typeof sock !== 'object' || sock == null) {
133 console.error('socket is not ready');
134 dispatchImmediateError(listener, 'NotPreparedError', 'Initialization is not finished.');
135 return;
138 if(!sock.isOpened()) {
139 console.error('socket is closed');
140 dispatchImmediateError(listener, 'NotPreparedError', 'Initialization is not finished.');
141 return;
194 if(typeof sock !== 'object' || sock == null) {
195 console.error('socket is not ready');
196 dispatchImmediateError(listener, 'NotPreparedError', 'Initialization is not finished.');
197 return;
FrameChannel.java (https://gitlab.com/UnderSampled/aard2-build) Java · 215 lines
21 import static org.simpleframework.http.socket.CloseCode.NORMAL_CLOSURE;
22 import static org.simpleframework.http.socket.service.ServiceEvent.OPEN_SOCKET;
24 import java.io.IOException;
31 import org.simpleframework.http.socket.Session;
32 import org.simpleframework.http.socket.WebSocket;
33 import org.simpleframework.transport.Channel;
34 import org.simpleframework.transport.Sender;
44 * control frames are used to perform heartbeat monitoring and closure.
45 * <p>
46 * For convenience frames can be consumed from the socket via a
47 * callback to a registered listener. This avoids having to poll each
48 * socket for data and provides a asynchronous event driven model of
54 * @see org.simpleframework.http.socket.Frame
55 */
56 class FrameChannel implements WebSocket {
58 /**
HostInterface.java (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) Java · 294 lines
6 import java.net.InterfaceAddress;
7 import java.net.NetworkInterface;
8 import java.net.SocketException;
9 import java.util.ArrayList;
10 import java.util.Enumeration;
112 try {
113 ni = NetworkInterface.getByName(interfaces[i]);
114 } catch (SocketException e) {
115 continue;
116 }
122 try {
123 nis = NetworkInterface.getNetworkInterfaces();
124 } catch (SocketException e) {
125 return null;
126 }
index.js (https://gitlab.com/girmayegebremedhin/student_managment) JavaScript · 123 lines
23 var webSocket_1 = require("../internal/observable/dom/webSocket");
24 exports.webSocket = webSocket_1.webSocket;
25 var AjaxObservable_1 = require("../internal/observable/dom/AjaxObservable");
26 exports.ajaxGet = AjaxObservable_1.ajaxGet;
37 var WebSocketSubject_1 = require("../internal/observable/dom/WebSocketSubject");
38 exports.WebSocketSubject = WebSocketSubject_1.WebSocketSubject;
39 var combineLatest_1 = require("../internal/observable/combineLatest");
40 exports.CombineLatestOperator = combineLatest_1.CombineLatestOperator;
inet_ntop.c (https://gitlab.com/adam.lukaitis/Win32-OpenSSH) C · 211 lines
SslConfiguration.cs (https://gitlab.com/OriumVR/websocket-sharp) C# · 172 lines
QxTransaction.h (https://gitlab.com/Sarahma/Installation-Requirements) C Header · 156 lines
ion_test.c (https://gitlab.com/SOKP/device_samsung_omap4-common) C · 319 lines
7 #include <sys/mman.h>
8 #include <sys/ioctl.h>
9 #include <sys/socket.h>
10 #include <sys/stat.h>
11 #include <sys/types.h>
138 };
139 char buf[CMSG_SPACE(sizeof(int))];
140 socketpair(AF_UNIX, SOCK_STREAM, 0, sd);
141 if (fork()) {
142 struct msghdr msg = {
162 strcpy(ptr, "master");
163 cmsg = CMSG_FIRSTHDR(&msg);
164 cmsg->cmsg_level = SOL_SOCKET;
165 cmsg->cmsg_type = SCM_RIGHTS;
166 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
nlmsgtab.c (https://gitlab.com/SerenityS/android_kernel_exynos3475) C · 184 lines
31 static struct nlmsg_perm nlmsg_route_perms[] =
32 {
33 { RTM_NEWLINK, NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
34 { RTM_DELLINK, NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
35 { RTM_GETLINK, NETLINK_ROUTE_SOCKET__NLMSG_READ },
36 { RTM_SETLINK, NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
37 { RTM_NEWADDR, NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
38 { RTM_DELADDR, NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
39 { RTM_GETADDR, NETLINK_ROUTE_SOCKET__NLMSG_READ },
40 { RTM_NEWROUTE, NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
41 { RTM_DELROUTE, NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
42 { RTM_GETROUTE, NETLINK_ROUTE_SOCKET__NLMSG_READ },
http_network_session.h (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) C Header · 179 lines
98 SOCKSClientSocketPool* GetSocketPoolForSOCKSProxy(
99 const HostPortPair& socks_proxy) {
100 return socket_pool_manager_.GetSocketPoolForSOCKSProxy(socks_proxy);
101 }
103 HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy(
104 const HostPortPair& http_proxy) {
105 return socket_pool_manager_.GetSocketPoolForHTTPProxy(http_proxy);
169 SSLClientAuthCache ssl_client_auth_cache_;
170 HttpAlternateProtocols alternate_protocols_;
171 ClientSocketPoolManager socket_pool_manager_;
172 SpdySessionPool spdy_session_pool_;
173 scoped_ptr<HttpStreamFactory> http_stream_factory_;
server_state.js (https://gitlab.com/dogcalas/solaci) JavaScript · 366 lines
AwsSdkMetricsTest.java (https://gitlab.com/github-cloud-corp/aws-sdk-java) Java · 186 lines
DockerComponentConfiguration.java (https://gitlab.com/matticala/apache-camel) Java · 285 lines
SelectionKeyTest.java (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) Java · 321 lines
19 import java.io.IOException;
20 import java.net.InetSocketAddress;
21 import java.net.ServerSocket;
24 import java.nio.channels.SelectionKey;
25 import java.nio.channels.Selector;
26 import java.nio.channels.SocketChannel;
28 import junit.framework.TestCase;
36 Selector selector;
38 SocketChannel sc;
40 SelectionKey selectionKey;
297 public void test_readyOps() throws IOException {
298 int port = Support_PortManager.getNextPort();
299 ServerSocket ss = new ServerSocket(port);
300 try {
301 sc.connect(new InetSocketAddress(LOCAL_ADDR, port));
MacAddressUtil.java (https://gitlab.com/taichu/netty) Java · 221 lines
19 import java.net.InetAddress;
20 import java.net.NetworkInterface;
21 import java.net.SocketException;
22 import java.util.Arrays;
23 import java.util.Enumeration;
67 }
68 }
69 } catch (SocketException e) {
70 logger.warn("Failed to retrieve the list of available network interfaces", e);
71 }
81 try {
82 macAddr = iface.getHardwareAddress();
83 } catch (SocketException e) {
84 logger.debug("Failed to get the hardware address of a network interface: {}", iface, e);
85 continue;
bsd-sockets-test-1.2.11.patch (https://gitlab.com/kogaion/portage) Patch · 350 lines
1 diff -r -U2 sbcl-1.2.11.orig/contrib/sb-bsd-sockets/tests.lisp sbcl-1.2.11/contrib/sb-bsd-sockets/tests.lisp
2 --- sbcl-1.2.11.orig/contrib/sb-bsd-sockets/tests.lisp 2015-04-27 20:56:47.000000000 +0600
3 +++ sbcl-1.2.11/contrib/sb-bsd-sockets/tests.lisp 2015-04-28 22:27:32.588146072 +0600
4 @@ -36,13 +36,13 @@
5 ;;; Apparently getprotobyname_r on FreeBSD says -1 and EINTR
185 - (socket-connect s "/dev/log")
186 - (sb-bsd-sockets::socket-error ()
187 - (setq s (make-instance 'local-socket :type :stream))
216 +; (socket-connect s "/dev/log")
217 +; (sb-bsd-sockets::socket-error ()
218 +; (setq s (make-instance 'local-socket :type :stream))
340 +; :ok)
342 (defmacro with-client-and-server ((server-socket-var client-socket-var) &body body)
343 @@ -485,4 +485,5 @@
344 client server (unsigned-byte 8) ,direction)))))
SocketHandler.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 284 lines
16 /**
17 * Stores to any socket - uses fsockopen() or pfsockopen().
18 *
19 * @author Pablo de Leon Belloc <pablolb@gmail.com>
20 * @see http://php.net/manual/en/function.fsockopen.php
21 */
22 class SocketHandler extends AbstractProcessingHandler
23 {
24 private $connectionString;
32 /**
33 * @param string $connectionString Socket connection string
34 * @param integer $level The minimum logging level at which this handler will be triggered
35 * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
ax25_timer.c (https://gitlab.com/envieidoc/tomato) C · 245 lines
udp_io.c (https://gitlab.com/envieidoc/tomato) C · 182 lines
python-pyqt5.mk (https://gitlab.com/cronmod-dev/buildroot) Makefile · 185 lines
ConnectionTest.cpp (https://gitlab.com/LongAiR/KDb) C++ · 133 lines
interactor.mocha.js (https://gitlab.com/yousafsyed/pm2) JavaScript · 241 lines
11 var nssocket = require('nssocket');
13 var Ipm2 = require('pm2-interface');
83 it('should start mock NSSOCKER interface', function(done) {
84 server = nssocket.createServer(function (_socket) {
85 console.log('new connection');
86 socket = _socket;
220 // server.close();
221 // server = nssocket.createServer(function (_socket) {
222 // console.log('new connection');
223 // socket = _socket;
get_gateway.c (https://gitlab.com/biometricscurious/zmap) C · 237 lines
16 #include <netinet/in.h>
17 #include <net/if.h>
18 #include <sys/socket.h>
19 #include <sys/ioctl.h>
20 #include <linux/netlink.h>
21 #include <linux/rtnetlink.h>
22 #include <sys/types.h>
23 #include <sys/socket.h>
24 #include <arpa/inet.h>
58 void *payload, uint32_t payload_len)
59 {
60 int sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
61 if (sock < 0) {
62 log_error("get-gw", "unable to get socket: %s", strerror(errno));
ServerHook.html (https://gitlab.com/essere.lab.public/qualitas.class-corpus) HTML · 173 lines
107 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
108 <CODE> class</CODE></FONT></TD>
109 <TD><CODE><B><A HREF="../../../../org/quickserver/net/server/GhostSocketReaper.html" title="class in org.quickserver.net.server">GhostSocketReaper</A></B></CODE>
111 <BR>
112 Class (Server Hook) that closes any dead (ghost) sockets that are no
113 longer connected or communicating.</TD>
114 </TR>
client.php (https://gitlab.com/alexprowars/bitrix) PHP · 224 lines
protocol.py (https://gitlab.com/freedmpure/strongswan) Python · 203 lines
LiveCreateHost.h (https://gitlab.com/dahbearz/CRYENGINE) C Header · 206 lines
StreamChannelManagerTest.java (https://gitlab.com/hansol6566/pinpoint) Java · 359 lines
134 SimpleStreamBO bo = new SimpleStreamBO();
136 PinpointClientFactory clientFactory = createSocketFactory(SimpleMessageListener.INSTANCE, new ServerListener(bo));
138 try {
141 Thread.sleep(100);
143 List<PinpointSocket> writableServerList = serverAcceptor.getWritableSocketList();
144 Assert.assertEquals(1, writableServerList.size());
245 Thread.sleep(100);
247 List<PinpointSocket> writableServerList = serverAcceptor.getWritableSocketList();
248 Assert.assertEquals(1, writableServerList.size());
ZipHeader.h (https://gitlab.com/Red54/firmware-mod-kit) C Header · 237 lines
193 const UInt32 kIFDIR = 0040000; /* Unix directory */
194 const UInt32 kIFREG = 0100000; /* Unix regular file */
195 const UInt32 kIFSOCK = 0140000; /* Unix socket (BSD, not SysV or Amiga) */
196 const UInt32 kIFLNK = 0120000; /* Unix symbolic link (not SysV, Amiga) */
197 const UInt32 kIFBLK = 0060000; /* Unix block special (not Amiga) */
hotspot.d.ts (https://gitlab.com/diegowebd/discovery-basic-ionic2) TypeScript Typings · 240 lines
address_v6.hpp (https://gitlab.com/cdeclare/intcrypt) C++ Header · 248 lines
sckaddr.h (https://gitlab.com/Hexexpeck/dolphin-emulator) C Header · 218 lines
15 #include "wx/defs.h"
17 #if wxUSE_SOCKETS
19 #include "wx/string.h"
26 struct sockaddr;
28 // Any socket address kind
29 class WXDLLIMPEXP_NET wxSockAddress : public wxObject
30 {
182 #endif // wxUSE_IPV6
184 // Unix domain sockets are only available under, well, Unix
185 #if defined(__UNIX__) && !defined(__WINDOWS__) && !defined(__WINE__)
186 #define wxHAS_UNIX_DOMAIN_SOCKETS
event-config.h (https://gitlab.com/f3822/qtwebengine-chromium) C Header · 271 lines
connection-endpointSpec.js (https://gitlab.com/jasonparser/deepstream.io) JavaScript · 273 lines
9 lastAuthenticatedMessage = null,
10 lastLoggedMessage = null,
11 socketMock,
12 options,
13 connectionEndpoint;
22 connectionEndpoint = new ConnectionEndpoint( options );
24 connectionEndpoint.onMessage = function( socket, message ){
25 lastAuthenticatedMessage = message;
26 };
118 it( 'creates the connection endpoint', function(){
119 socketMock = engineIoMock.simulateConnection();
120 });
index.js (https://gitlab.com/Infrared-KHTN/aulluminate) JavaScript · 305 lines
Android.mk (https://gitlab.com/knax/android_device_xiaomi_ferrari) Makefile · 208 lines
28 src/mm_qcamera_reprocess.c\
29 src/mm_qcamera_queue.c \
30 src/mm_qcamera_socket.c \
31 src/mm_qcamera_commands.c
32 # src/mm_qcamera_dual_test.c \
131 src/mm_qcamera_reprocess.c\
132 src/mm_qcamera_queue.c \
133 src/mm_qcamera_socket.c \
134 src/mm_qcamera_commands.c
135 # src/mm_qcamera_dual_test.c \
l2tp.h (https://gitlab.com/matthewalex/arm-eabi-4.9-linaro) C Header · 159 lines
content.md (https://gitlab.com/apachipa/docs) Markdown · 125 lines
1 # What is Lightstreamer Server?
3 Lightstreamer is a real-time messaging server optimized for the Internet. Blending WebSockets, HTTP, and push notifications, it streams data to/from mobile, tablet, browser-based, desktop, and IoT applications.
5 For more information and related downloads for Lightstreamer Server and other Lightstreaner products, please visit [www.lightstreamer.com](http://www.lightstreamer.com).
raw.c (https://gitlab.com/OpenSourceMirror/s2putty) C · 282 lines
21 /* the above field _must_ be first in the structure */
23 Socket s;
24 int bufsize;
25 void *frontend;
61 }
62 if (error_msg) {
63 /* A socket error has occurred. */
64 logevent(raw->frontend, error_msg);
65 connection_fatal(raw->frontend, "%s", error_msg);
134 /*
135 * Open socket.
136 */
137 raw->s = new_connection(addr, *realhost, port, 0, 1, nodelay, keepalive,
action_cable_client_spec.rb (https://gitlab.com/NullVoxPopuli/action_cable_client) Ruby · 260 lines
7 context 'with empty WebSocketClient' do
8 let!(:websocket_client) do
9 websocket_client_class = class_double(WebSocket::EventMachine::Client).as_stubbed_const
10 websocket_client = instance_double(WebSocket::EventMachine::Client)
12 allow(websocket_client_class).to receive(:connect).and_return websocket_client
13 allow(websocket_client).to receive(:onclose) do |&block|
14 @websocket_client_onclose_block = block
15 end
17 websocket_client
18 end
defines.h (https://gitlab.com/orvi2014/rcs-db-ext) C Header · 264 lines
eloop.h (https://gitlab.com/HowTheStoryEnds/freebsd11-psm-port) C Header · 359 lines
7 *
8 * This file defines an event loop interface that supports processing events
9 * from registered timeouts (i.e., do something after N seconds), sockets
10 * (e.g., a new packet available for reading), and signals. eloop.c is an
11 * implementation of this interface using select() and sockets. This is
25 /**
26 * eloop_event_type - eloop socket event type for eloop_register_sock()
27 * @EVENT_TYPE_READ: Socket has data available for reading
28 * @EVENT_TYPE_WRITE: Socket has room for new data to be written
29 * @EVENT_TYPE_EXCEPTION: An exception has been reported
30 */
37 /**
38 * eloop_sock_handler - eloop socket event callback type
39 * @sock: File descriptor number for the socket
StopTest.java (https://gitlab.com/UnderSampled/aard2-build) Java · 176 lines
6 import java.lang.management.ManagementFactory;
7 import java.lang.management.ThreadMXBean;
8 import java.net.InetSocketAddress;
9 import java.net.URL;
10 import java.net.URLConnection;
16 import org.simpleframework.http.Response;
17 import org.simpleframework.transport.connect.Connection;
18 import org.simpleframework.transport.connect.SocketConnection;
19 import org.simpleframework.util.thread.ConcurrentExecutor;
35 try {
36 ServerCriteria criteria = createServer();
37 InetSocketAddress address = criteria.getAddress();
38 Connection connection = criteria.getConnection();
39 Client client = createClient(address, String.format("[%s of %s]", i, ITERATIONS));
84 Connection connection = new SocketConnection(server);
85 InetSocketAddress address = (InetSocketAddress)connection.connect(null); // ephemeral port
87 return new ServerCriteria(connection, address);
http.js (https://gitlab.com/nhanvu/cyber-duck) JavaScript · 218 lines
SSL_SOCK_Connector.h (https://gitlab.com/mohsencs/SunWellCore) C Header · 316 lines
40 * i.e., it simply "borrows" the one from the ACE_SSL_SOCK_Stream
41 * that's being connected. The reason for this is that the
42 * underlying socket API doesn't use a "factory" socket to connect
43 * "data-mode" sockets. Therefore, there's no need to inherit
45 *
46 * Since SSL is record-oriented, some additional work is done after
47 * the plain socket is connected.
48 *
49 * @note The user must currently ensure that only one thread services
117 * @param remote_sap The address that we are trying to connect to.
118 * The protocol family of @c remote_sap is used for
119 * the connected socket. That is, if @c remote_sap
120 * contains an IPv6 address, a socket with family
168 * Actively connect to a peer, producing a connected @c ACE_SSL_SOCK_Stream
169 * object if the connection succeeds. This method performs both the
170 * initial socket connect and the SSL handshake.
171 *
172 * @param new_stream The @c ACE_SSL_SOCK_Stream object that will be
packets_xdr.go (https://gitlab.com/shinvdu/syncthing) Go · 455 lines
390 | 16 zero bits | Port |
391 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
392 | Server Socket (V=0 or 1) |V|
393 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
399 opaque Address<32>;
400 unsigned int Port;
401 bool ServerSocket;
402 }
438 m.MarshalBytes(o.Address)
439 m.MarshalUint16(o.Port)
440 m.MarshalBool(o.ServerSocket)
441 return m.Error
442 }
Bulk.php (https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters) PHP · 400 lines
int_storage.c (https://gitlab.com/wushin/evol-server-code-old) C · 639 lines
index.html (https://gitlab.com/Sxw1212/questions) HTML · 211 lines
9 <script src="build/react-dom.js"></script>
10 <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
11 <script src="/socket.io/socket.io.js"></script>
12 <title>Questions</title>
13 </head>
180 /> : null}
181 { this.state.gameState.showAnswerBox ? <AnswerBox
182 socket={this.state.socket}
183 gameState={this.state.gameState}
184 /> : null}
185 { this.state.gameState.showJoinBox ? <JoinBox
186 socket={this.state.socket}
187 /> : null}
188 { this.state.gameState.showGameWaitBox ? <div>
docker.md (https://gitlab.com/king6cong/gitlab-ci-multi-runner) Markdown · 117 lines
ReadableByteChannel.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 91 lines
49 * <p> A read operation might not fill the buffer, and in fact it might not
50 * read any bytes at all. Whether or not it does so depends upon the
51 * nature and state of the channel. A socket channel in non-blocking mode,
52 * for example, cannot read any more bytes than are immediately available
53 * from the socket's input buffer; similarly, a file channel cannot read
ContentHandler.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 93 lines
23 * up by a call to <code>setContentHandler</code>) is
24 * called with a <code>String</code> giving the MIME type of the
25 * object being received on the socket. The factory returns an
26 * instance of a subclass of <code>ContentHandler</code>, and its
27 * <code>getContent</code> method is called to create the object.
DHTUDPPacketReplyQueryStorage.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 193 lines
DebuggingApplications.html (https://gitlab.com/essere.lab.public/qualitas.class-corpus) HTML · 70 lines
13 in KDWP format. Responses from the Java Card RI are converted into JDWP format by debugproxy
14 before it sends them to the IDE. </p>
15 <p class="p">The communication between the Java Card RI, debugproxy, and the IDE happens through sockets. Socket based communication enables developers to debug cjcre from remote hosts. For example, the Java Card RI could run on machine1, debugproxy could run on machine2, and the IDE could run
16 on machine3. Developers can also run the Java Card RI, debugproxy, and the IDE on same
17 host.</p><p class="p">Ports used by IDE communication to and from debugproxy and debugproxy communication to
qlocalserver.h (https://gitlab.com/x33n/phantomjs) C Header · 111 lines
57 Q_OBJECT
58 Q_DECLARE_PRIVATE(QLocalServer)
59 Q_PROPERTY(SocketOptions socketOptions READ socketOptions WRITE setSocketOptions)
60 Q_FLAGS(SocketOption SocketOptions)
71 WorldAccessOption = 0x7
72 };
73 Q_DECLARE_FLAGS(SocketOptions, SocketOption)
75 explicit QLocalServer(QObject *parent = 0);
87 QString fullServerName() const;
88 static bool removeServer(const QString &name);
89 QAbstractSocket::SocketError serverError() const;
90 void setMaxPendingConnections(int numConnections);
91 bool waitForNewConnection(int msec = 0, bool *timedOut = 0);
93 void setSocketOptions(SocketOptions options);
94 SocketOptions socketOptions() const;
find.php (https://gitlab.com/x33n/ampache) PHP · 140 lines
83 $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
84 socket_set_option($socket, SOL_SOCKET, SO_BROADCAST, 1);
85 socket_sendto($socket, $msg, strlen($msg), 0, '239.255.255.250', 1900);
87 socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => $timeout, 'usec' => 0));
89 $response = array();
90 do {
91 $buf = null;
92 @socket_recvfrom($socket, $buf, 1024, MSG_WAITALL, $from, $port);
94 if (!is_null($buf))
97 } while (!is_null($buf));
98 //socket_close($socket);
100 return $response;
WebSocketClientExtensionHandlerTest.java (https://gitlab.com/taichu/netty) Java · 252 lines
27 import org.junit.Test;
29 import static io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionTestUtil.*;
30 import static org.easymock.EasyMock.*;
31 import static org.junit.Assert.*;
69 HttpRequest req2 = ch.readOutbound();
70 List<WebSocketExtensionData> reqExts = WebSocketExtensionUtil.extractExtensions(
71 req2.headers().get(HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS));
189 HttpResponse res2 = ch.readInbound();
190 List<WebSocketExtensionData> resExts = WebSocketExtensionUtil.extractExtensions(
191 res2.headers().get(HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS));
239 HttpRequest req2 = ch.readOutbound();
240 List<WebSocketExtensionData> reqExts = WebSocketExtensionUtil.extractExtensions(
241 req2.headers().get(HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS));
stat.h (https://gitlab.com/murixteam/energia-0101e0012-windows-mwc) C Header · 183 lines
sys_time.in.h (https://gitlab.com/RobertCochran/emacs) C Header · 220 lines
148 # undef socket
149 # define socket socket_used_without_including_sys_socket_h
150 # undef connect
151 # define connect connect_used_without_including_sys_socket_h
171 # define sendto sendto_used_without_including_sys_socket_h
172 # undef setsockopt
173 # define setsockopt setsockopt_used_without_including_sys_socket_h
174 # undef shutdown
175 # define shutdown shutdown_used_without_including_sys_socket_h
177 _GL_WARN_ON_USE (socket,
178 "socket() used without including <sys/socket.h>");
179 _GL_WARN_ON_USE (connect,
180 "connect() used without including <sys/socket.h>");
184 "bind() used without including <sys/socket.h>");
185 _GL_WARN_ON_USE (getpeername,
186 "getpeername() used without including <sys/socket.h>");
187 _GL_WARN_ON_USE (getsockname,
188 "getsockname() used without including <sys/socket.h>");
gitaly_client_spec.rb (https://gitlab.com/Ben305/gitlab-ce) Ruby · 283 lines
validation_test.go (https://gitlab.com/bauerdominic/gitlab-agent) Go · 364 lines
53 RedisConfig: &RedisCF_Server{
54 Server: &RedisServerCF{
55 Address: "//path/to/socket.sock",
56 },
57 },
179 RedisConfig: &RedisCF_Server{
180 Server: &RedisServerCF{
181 Address: "//path/to/socket.sock",
182 },
183 },
190 RedisConfig: &RedisCF_Server{
191 Server: &RedisServerCF{
192 Address: "//path/to/socket.sock",
193 },
194 },
data.base (https://bitbucket.org/clivecrous/ruhack.git) Unknown · 5151 lines
582 and looked at the gaming board on the red marble table in
583 front of him. Blind Io had got his name because, where his
584 eye sockets should have been, there were nothing but two
585 areas of blank skin. His eyes, of which he had an impressively
586 large number, led a semi-independent life of their
796 was halfway between ape and man, but his head was already
797 much nearer to man than ape. The forehead was low, and
798 there were ridges over the eye sockets, yet he unmistakably
799 held in his genes the promise of humanity.
800 [ 2001: A Space Odyssey, by Arthur C. Clarke ]
qwebpage.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 4219 lines
testhttpserver.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 93 lines
build-impl.xml (https://bitbucket.org/atchariya/nokia.git) XML · 1247 lines
911 </target>
912 <target name="semc-debug-start" if="semc-platform.trigger">
913 <nbjpdastart transport="dt_socket" addressproperty="jpda.port" name="${main.class}">
914 <classpath>
915 <path path="${build.classes.dir}"/>
976 <arg value="-Xdevice:${platform.device}"/>
977 <arg value="-Xmain:${main.class}"/>
978 <arg value="-Xrunjdwp:transport=dt_socket,address=${active.debug.port},server=y,suspend=y"/>
979 <arg value="-Xdebug"/>
980 </exec>
qtcore.html (https://bitbucket.org/ultra_iter/qt-vtl.git) HTML · 122 lines
91 <tr valign="top" bgcolor="#f0f0f0"><td><b>QSize</b></td><td>Defines the size of a two-dimensional object</td></tr>
92 <tr valign="top" bgcolor="#f0f0f0"><td><b>QSizeF</b></td><td>Defines the size of a two-dimensional object using floating point values for accuracy</td></tr>
93 <tr valign="top" bgcolor="#f0f0f0"><td><b>QSocketNotifier</b></td><td>Support for monitoring activity on a file descriptor</td></tr>
94 <tr valign="top" bgcolor="#f0f0f0"><td><b>QStack</b></td><td>Template class that provides a stack</td></tr>
95 <tr valign="top" bgcolor="#f0f0f0"><td><b>QString</b></td><td>Unicode character string</td></tr>
QtNetworku.def (https://bitbucket.org/ultra_iter/qt-vtl.git) Module-Definition · 1263 lines
2 ??0QAbstractNetworkCache@@IAE@AAVQAbstractNetworkCachePrivate@@PAVQObject@@@Z @ 1 NONAME ; QAbstractNetworkCache::QAbstractNetworkCache(class QAbstractNetworkCachePrivate &, class QObject *)
3 ??0QAbstractNetworkCache@@IAE@PAVQObject@@@Z @ 2 NONAME ; QAbstractNetworkCache::QAbstractNetworkCache(class QObject *)
4 ??0QAbstractSocket@@IAE@W4SocketType@0@AAVQAbstractSocketPrivate@@PAVQObject@@@Z @ 3 NONAME ; QAbstractSocket::QAbstractSocket(enum QAbstractSocket::SocketType, class QAbstractSocketPrivate &, class QObject *)
5 ??0QAbstractSocket@@QAE@W4SocketType@0@PAVQObject@@@Z @ 4 NONAME ; QAbstractSocket::QAbstractSocket(enum QAbstractSocket::SocketType, class QObject *)
78 ??0QSslSocket@@QAE@PAVQObject@@@Z @ 77 NONAME ; QSslSocket::QSslSocket(class QObject *)
79 ??0QTcpServer@@QAE@PAVQObject@@@Z @ 78 NONAME ; QTcpServer::QTcpServer(class QObject *)
80 ??0QTcpSocket@@IAE@AAVQTcpSocketPrivate@@PAVQObject@@@Z @ 79 NONAME ; QTcpSocket::QTcpSocket(class QTcpSocketPrivate &, class QObject *)
81 ??0QTcpSocket@@QAE@PAVQObject@@@Z @ 80 NONAME ; QTcpSocket::QTcpSocket(class QObject *)
363 ?encryptionMethod@QSslCipher@@QBE?AVQString@@XZ @ 362 NONAME ; class QString QSslCipher::encryptionMethod(void) const
364 ?equal@QUrlInfo@@SA_NABV1@0H@Z @ 363 NONAME ; bool QUrlInfo::equal(class QUrlInfo const &, class QUrlInfo const &, int)
365 ?error@QAbstractSocket@@IAEXW4SocketError@1@@Z @ 364 NONAME ; void QAbstractSocket::error(enum QAbstractSocket::SocketError)
366 ?error@QAbstractSocket@@QBE?AW4SocketError@1@XZ @ 365 NONAME ; enum QAbstractSocket::SocketError QAbstractSocket::error(void) const
368 ?error@QHostInfo@@QBE?AW4HostInfoError@1@XZ @ 367 NONAME ; enum QHostInfo::HostInfoError QHostInfo::error(void) const
369 ?error@QHttp@@QBE?AW4Error@1@XZ @ 368 NONAME ; enum QHttp::Error QHttp::error(void) const
370 ?error@QLocalSocket@@IAEXW4LocalSocketError@1@@Z @ 369 NONAME ; void QLocalSocket::error(enum QLocalSocket::LocalSocketError)
371 ?error@QLocalSocket@@QBE?AW4LocalSocketError@1@XZ @ 370 NONAME ; enum QLocalSocket::LocalSocketError QLocalSocket::error(void) const
qmovie.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1089 lines
case-longdomsrch2.sys (https://bitbucket.org/__wp__/mb-linux-msli.git) Unknown · 73 lines
2 :1 1/xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk
3 start 951956143.624786
4 socket type=SOCK_DGRAM
5 socket=4