100+ results for 'socket repo:jothan/gnutls'

Not the results you expected?

ReverseVirtualSocket.java (https://github.com/interdroid/smartsockets.git) Java · 445 lines

143

144 /**

145 * @see ibis.smartsockets.virtual.VirtualSocket#getLocalSocketAddress()

146 */

147 public SocketAddress getLocalSocketAddress() {

189

190 /**

191 * @see ibis.smartsockets.virtual.VirtualSocket#getRemoteSocketAddress()

192 */

193 public SocketAddress getRemoteSocketAddress() {

279

280 /**

281 * @see ibis.smartsockets.virtual.modules.direct.DirectVirtualSocket#isOutputShutdown()

282 */

283 public boolean isOutputShutdown() {

368 * @throws SocketException

369 * @see ibis.smartsockets.virtual.modules.direct.DirectVirtualSocket#setSendBufferSize(int)

370 */

371 public void setSendBufferSize(int sz) throws SocketException {

SOCK_Connector.cpp (https://github.com/origins/CactusEMU.git) C++ · 365 lines

5 #include "ace/Log_Msg.h"

6 #include "ace/OS_NS_unistd.h"

7 #include "ace/OS_NS_sys_socket.h"

8 #include "ace/os_include/os_fcntl.h"

9

38 ACE_TRACE ("ACE_SOCK_Connector::shared_open");

39

40 // Only open a new socket if we don't already have a valid handle.

41 if (new_stream.get_handle () == ACE_INVALID_HANDLE

42 && new_stream.open (SOCK_STREAM,

60 ACE_TRACE ("ACE_SOCK_Connector::shared_open");

61

62 // Only open a new socket if we don't already have a valid handle.

63 if (new_stream.get_handle () == ACE_INVALID_HANDLE

64 && new_stream.open (SOCK_STREAM,

index.js (https://gitlab.com/josephm9/304CEM-CW) JavaScript · 328 lines

210 })

211

212 describe('unix domain sockets', function(){

213 it('without auth', function(done){

214 var val = muri('mongodb:///tmp/mongodb-27017.sock?safe=false');

Makefile (https://bitbucket.org/nqminh/filagree.git) Makefile · 341 lines

1

2 # To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS

3 # To compile on MinGW: add "-lws2_32" to LDFLAGS or define WINDOWS in your env

4 # To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS

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;

namespace.test.js (https://github.com/asplogic/socket.io.git) JavaScript · 286 lines

10 */

11

12 var sio = require('socket.io')

13 , should = require('./common')

14 , ports = 15700;

33

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']);

256

257 io.sockets.on('connection', function (socket) {

258 socket.on('foobar', function () {

connect.hpp (https://github.com/BorisSchaeling/asio.git) C++ Header · 389 lines

255

256 //private:

257 basic_socket<Protocol, SocketService>& socket_;

258 Iterator iter_;

259 Iterator end_;

307 inline connect_op<Protocol, SocketService, Iterator,

308 ConnectCondition, ComposedConnectHandler>

309 make_connect_op(basic_socket<Protocol, SocketService>& sock,

310 const Iterator& begin, const Iterator& end,

311 const ConnectCondition& connect_condition,

353 template <typename Protocol, typename SocketService, typename Iterator,

354 typename ConnectCondition, typename ComposedConnectHandler>

355 inline void async_connect(basic_socket<Protocol, SocketService>& s,

356 Iterator begin, ConnectCondition connect_condition,

357 ASIO_MOVE_ARG(ComposedConnectHandler) handler)

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>

9

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>&nbsp;</TD>

41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</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>&nbsp;</TD>

43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</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);

43

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

124

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

Server.java (https://github.com/hsablonniere/play.git) Java · 166 lines

4 import java.lang.management.ManagementFactory;

5 import java.net.InetAddress;

6 import java.net.InetSocketAddress;

7 import java.util.Properties;

8 import java.util.concurrent.Executors;

10 import org.jboss.netty.bootstrap.ServerBootstrap;

11 import org.jboss.netty.channel.ChannelException;

12 import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;

13

14 import play.Logger;

66 Play.fatalServerErrorOccurred();

67 }

68 ServerBootstrap bootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(

69 Executors.newCachedThreadPool(), Executors.newCachedThreadPool())

70 );

qabstractsocketengine.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 268 lines

100 }

101

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 }

212

213 void QAbstractSocketEngine::setSocketType(QAbstractSocket::SocketType socketType)

214 {

215 d_func()->socketType = socketType;

client.js (https://gitlab.com/oytunistrator/x3dom) JavaScript · 495 lines

52 },

53

54 "socketTimeout": function(test){

55 var client = simplesmtp.connect(PORT_NUMBER, false, {socketTimeout: 500});

analyze.h (https://bitbucket.org/encukou/patched-po.git) C Header · 187 lines

138 private:

139 /* The connection to the outside */

140 Network &socket();

141 const Network &socket() const;

142 /* To tell if its the registry we're connected to*/

143 bool registry_socket;

144

145 QList<QByteArray> storedCommands;

146 QSet<int> channelCommands;

147

148 Network mysocket;

149 };

150

netlink.h (https://bitbucket.org/apanda/ovs-ddc.git) C Header · 164 lines

29 * This header file defines helper functions for working with Netlink messages.

30 * For Netlink protocol definitions, see netlink-protocol.h. For

31 * Linux-specific definitions for Netlink sockets, see netlink-socket.h.

32 */

33

Player.py (https://github.com/karimForza/Orion-avec-cheveux.git) Python · 124 lines

1 import Unit as u

2 from Flag import *

3 import socket

4

5 #Represente un joueur

SslSocketConnector.html (https://github.com/djKianoosh/jQuery_workshop.git) HTML · 145 lines

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

8 Uses of Class org.eclipse.jetty.server.ssl.SslSocketConnector (Jetty :: Hightide Distribution 7.2.1.v20101111 API)

9 </TITLE>

10

17 {

18 if (location.href.indexOf('is-external=true') == -1) {

19 parent.document.title="Uses of Class org.eclipse.jetty.server.ssl.SslSocketConnector (Jetty :: Hightide Distribution 7.2.1.v20101111 API)";

20 }

21 }

41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/eclipse/jetty/server/ssl/SslSocketConnector.html" title="class in org.eclipse.jetty.server.ssl"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

44 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

MemoryFileSystem.js (https://gitlab.com/limorelv/trelloApp) JavaScript · 225 lines

56 isSymbolicLink: falseFn,

57 isFIFO: falseFn,

58 isSocket: falseFn

59 };

60 } else if(isFile(current[path[i]])) {

66 isSymbolicLink: falseFn,

67 isFIFO: falseFn,

68 isSocket: falseFn

69 };

70 } else

SSLSocketInputStream.java (https://github.com/MIPS/libcore.git) Java · 197 lines

24 /**

25 * This class provides input data stream functionality

26 * for SSLSocket. It accumulates the application data

27 * received by SSL protocol.

28 */

29 public final class SSLSocketInputStream

30 extends InputStream {

31

56 * to client applications.

57 */

58 protected SSLSocketInputStream(SSLSocketImpl owner) {

59 this.owner = owner;

60 }

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

13

46 }

47

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")

50

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 }

110

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;

21

22 import static io.netty.handler.codec.http.websocketx.WebSocketVersion.*;

23

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) {

cs_internal.h (https://github.com/dutchmaster/cm-kernel.git) C Header · 213 lines

15 *

16 * This file contains definitions _only_ needed by the PCMCIA core modules.

17 * It must not be included by PCMCIA socket drivers or by PCMCIA device

18 * drivers.

19 */

52

53 struct pccard_resource_ops {

54 int (*validate_mem) (struct pcmcia_socket *s);

55 int (*adjust_io_region) (struct resource *res,

56 unsigned long r_start,

124 int pccard_register_pcmcia(struct pcmcia_socket *s, struct pcmcia_callback *c);

125 struct pcmcia_socket *pcmcia_get_socket_by_nr(unsigned int nr);

126

127 void pcmcia_parse_uevents(struct pcmcia_socket *socket, unsigned int events);

132 #define PCMCIA_UEVENT_REQUERY 0x0010

133

134 struct pcmcia_socket *pcmcia_get_socket(struct pcmcia_socket *skt);

135 void pcmcia_put_socket(struct pcmcia_socket *skt);

Makefile.in (https://bitbucket.org/manctl/stk.git) Autoconf · 104 lines

71 $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o duplex duplex.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY)

72

73 inetIn: inetIn.cpp Stk.o InetWvIn.o RtWvOut.o RtAudio.o Socket.o TcpServer.o UdpSocket.o Thread.o Mutex.o

74 $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o inetIn inetIn.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/InetWvIn.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/UdpSocket.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/RtWvOut.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)

75

76 inetOut: inetOut.cpp Stk.o FileRead.o FileWvIn.o InetWvOut.o Socket.o TcpClient.o UdpSocket.o Thread.o Mutex.o

77 $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o inetOut inetOut.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpClient.o $(OBJECT_PATH)/UdpSocket.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/InetWvOut.o $(LIBRARY)

89 $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o bethree bethree.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/FileLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(LIBRARY)

90

91 controlbee: controlbee.cpp Stk.o FileRead.o FileWvIn.o FileLoop.o FM.o RtAudio.o TwoZero.o SineWave.o ADSR.o BeeThree.o Messager.o RtMidi.o Socket.o TcpServer.o Thread.o Mutex.o Skini.o

92 $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o controlbee controlbee.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/FileLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(OBJECT_PATH)/Messager.o $(OBJECT_PATH)/RtMidi.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/Skini.o $(LIBRARY)

95 $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o foursine foursine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/FileWvOut.o $(LIBRARY)

96

97 threebees: threebees.cpp Stk.o FileRead.o FileWvIn.o FileLoop.o FM.o RtAudio.o TwoZero.o SineWave.o ADSR.o BeeThree.o Messager.o RtMidi.o Socket.o TcpServer.o Thread.o Mutex.o Skini.o Voicer.o

98 $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o threebees threebees.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/FileLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(OBJECT_PATH)/Messager.o $(OBJECT_PATH)/RtMidi.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/Skini.o $(OBJECT_PATH)/Voicer.o $(LIBRARY)

services.P (https://github.com/JTroniks/CyanogenMod-7.git) Prolog · 105 lines

28 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \

29 /usr/include/stdint.h /usr/include/bits/wchar.h \

30 system/core/include/cutils/sockets.h /usr/include/sys/socket.h \

31 /usr/include/sys/uio.h /usr/include/bits/uio.h \

32 /usr/include/bits/socket.h /usr/include/bits/sockaddr.h \

33 /usr/include/asm/socket.h /usr/include/asm-generic/socket.h \

34 /usr/include/asm/sockios.h /usr/include/asm-generic/sockios.h \

35 system/core/include/cutils/properties.h \

80 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h :

81 /usr/include/stdint.h /usr/include/bits/wchar.h :

82 system/core/include/cutils/sockets.h /usr/include/sys/socket.h :

83 /usr/include/sys/uio.h /usr/include/bits/uio.h :

84 /usr/include/bits/socket.h /usr/include/bits/sockaddr.h :

85 /usr/include/asm/socket.h /usr/include/asm-generic/socket.h :

86 /usr/include/asm/sockios.h /usr/include/asm-generic/sockios.h :

87 system/core/include/cutils/properties.h :

rild.P (https://github.com/JTroniks/CyanogenMod-7.git) Prolog · 115 lines

48 system/core/include/android/log.h \

49 system/core/include/cutils/properties.h \

50 system/core/include/cutils/sockets.h bionic/libc/include/sys/socket.h \

51 bionic/libc/kernel/common/linux/socket.h \

52 bionic/libc/kernel/arch-arm/asm/socket.h \

53 bionic/libc/kernel/arch-arm/asm/sockios.h \

54 bionic/libc/kernel/common/linux/sockios.h \

105 system/core/include/android/log.h :

106 system/core/include/cutils/properties.h :

107 system/core/include/cutils/sockets.h bionic/libc/include/sys/socket.h :

108 bionic/libc/kernel/common/linux/socket.h :

109 bionic/libc/kernel/arch-arm/asm/socket.h :

110 bionic/libc/kernel/arch-arm/asm/sockios.h :

111 bionic/libc/kernel/common/linux/sockios.h :

stomp-0.1.0.js (https://github.com/progrium/nullmq.git) JavaScript · 193 lines

3 var __hasProp = Object.prototype.hasOwnProperty, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };

4 Stomp = {

5 WebSocket: typeof WebSocket !== "undefined" && WebSocket !== null ? WebSocket : null,

6 frame: function(command, headers, body) {

7 if (headers == null) {

84 Client.prototype.connect = function(login_, passcode_, connectCallback, errorCallback) {

85 if (typeof this.debug === "function") {

86 this.debug("Opening Web Socket...");

87 }

88 this.ws = new Stomp.WebSocket(this.url);

111 this.ws.onopen = __bind(function() {

112 if (typeof this.debug === "function") {

113 this.debug('Web Socket Opened...');

114 }

115 return this._transmit("CONNECT", {

ModuleConnector.java (https://github.com/sli92/netcon.git) Java · 335 lines

5 import java.io.IOException;

6 import java.io.InputStreamReader;

7 import java.net.Socket;

8

9 import program.main.Netcond;

19 private Module module;

20 private int connectionTries;

21 private Socket clientSocket = null;

22 private String terminate;

23 private String timeout;

50 try {

51

52 clientSocket = new Socket(module.getIp(), 50003);

53

54 clientSocket.setSoTimeout(5000);

config.h (https://github.com/rhuitl/uClinux.git) C Header · 253 lines

180 #define HAVE_SNPRINTF 1

181

182 /* Define if you have the socket function. */

183 #define HAVE_SOCKET 1

client.rb (https://github.com/jduck/metasploit-framework.git) Ruby · 219 lines

4 require 'rex/proto/iax2/call'

5

6 require 'rex/socket'

7 require 'thread'

8 require 'digest/md5'

37 self.debugging = opts[:debugging]

38

39 self.sock = Rex::Socket::Udp.create(

40 'PeerHost' => self.server_host,

41 'PeerPort' => self.server_port,

43 )

44

45 self.monitor = ::Thread.new { monitor_socket }

46

47 self.src_call_idx = 0

ossl_ssl_session.c (https://github.com/replit/emscripted-ruby.git) C · 298 lines

28 /*

29 * call-seq:

30 * Session.new(SSLSocket | string) => session

31 *

32 * === Parameters

33 * +SSLSocket+ is an OpenSSL::SSL::SSLSocket

34 * +string+ must be a DER or PEM encoded Session.

35 */

43 ossl_raise(eSSLSession, "SSL Session already initialized");

44

45 if (rb_obj_is_instance_of(arg1, cSSLSocket)) {

46 SSL *ssl;

47

MongoConnection.java (https://github.com/meddah/graylog2-server.git) Java · 186 lines

1 /**

2 * Copyright 2010, 2011 Lennart Koopmann <lennart@socketfeed.com>

3 *

4 * This file is part of Graylog2.

30 * MongoDB connection singleton

31 *

32 * @author: Lennart Koopmann <lennart@socketfeed.com>

33 */

34 public final class MongoConnection {

Websocket.java (https://github.com/gautric/node.x.git) Java · 179 lines

19 import org.jboss.netty.handler.codec.http.websocket.DefaultWebSocketFrame;

20 import org.jboss.netty.handler.codec.http.websocket.WebSocketFrame;

21 import org.nodex.java.core.Handler;

22 import org.nodex.java.core.buffer.Buffer;

53 * The uri the websocket was created on. When a websocket is first received on the server, the uri can be checked and

54 * the websocket can be closed if you want to restrict which uris you wish to accept websockets on.

55 */

56 public final String uri;

95

96 /**

97 * Pause the websocket. Once the websocket has been paused, the system will stop reading any more chunks of data

98 * from the wire, thus pushing back to the server.

99 * Pause is often used in conjunction with a {@link org.nodex.java.core.streams.Pump} to pump data between streams and implement flow control.

104

105 /**

106 * Resume a paused websocket. The websocket will resume receiving chunks of data from the wire.<p>

107 * Resume is often used in conjunction with a {@link org.nodex.java.core.streams.Pump} to pump data between streams and implement flow control.

108 */

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();

86

87 OkHttpClient.Builder builder = new OkHttpClient.Builder();

88

89 builder.sslSocketFactory(sslSocketFactory);

90

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 {

46

47 private final SocketFactory socketFactory;

48

49 private MqttAsyncClient mqttClient;

52 private Set<String> serverUris;

53

54 public AwsIotMqttConnection(AbstractAwsIotClient client, SocketFactory socketFactory, String serverUri)

55 throws AWSIotException {

56 super(client);

57

58 this.socketFactory = socketFactory;

59

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)))

OnlineTest.php (https://github.com/leerbag/zf2.git) PHP · 377 lines

39

40 /**

41 * Socket based HTTP client adapter

42 *

43 * @var Zend_Http_Client_Adapter_Socket

44 */

45 protected $_httpClientAdapterSocket;

46

47 /**

58 $this->_yahoo = new Zend_Service_Yahoo(constant('TESTS_ZEND_SERVICE_YAHOO_ONLINE_APPID'));

59

60 $this->_httpClientAdapterSocket = new Zend_Http_Client_Adapter_Socket();

61

62 $this->_yahoo->getRestClient()

SOCK_Acceptor.cpp (https://github.com/chucho/FaceCore.git) 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"

10

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);

198

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)

index.js (https://github.com/possan/nodesequencer.git) JavaScript · 337 lines

5 console.log(location);

6

7 var socket = io.connect('http://' + location.host);

8

9 socket.on('step', function(data) {

13

14 function bpm(delta) {

15 socket.emit('bpm', {

16 bpmdelta : delta

17 });

24

25 $(this).bind('mousedown', function() {

26 socket.emit('deviceButtonDown', {

27 button : parseInt(this.id.substring(6), 10)

28 });

CLChatServer.java (https://github.com/averagehuman/doc-javanotes.git) Java · 156 lines

10 * specified, then the server will listen on any available port.

11 * This program only supports one connection. As soon as a connection is

12 * opened, the listening socket is closed down. The two ends of the connection

13 * each send a HANDSHAKE string to the other, so that both ends can verify

14 * that the program on the other end is of the right type. Then the connected

48 int port; // The port on which the server listens.

49

50 ServerSocket listener; // Listens for a connection request.

51 Socket connection; // For communication with the client.

81

82 try {

83 listener = new ServerSocket(port);

84 System.out.println("Listening on port " + listener.getLocalPort());

85 connection = listener.accept();

xsub.cpp (https://github.com/pjkundert/libzmq.git) C++ · 232 lines

26

27 zmq::xsub_t::xsub_t (class ctx_t *parent_, uint32_t tid_) :

28 socket_base_t (parent_, tid_),

29 has_message (false),

30 more (false)

32 options.type = ZMQ_XSUB;

33

34 // When socket is being closed down we don't want to wait till pending

35 // subscription commands are sent to the wire.

36 options.linger = 0;

220

221 zmq::xsub_session_t::xsub_session_t (io_thread_t *io_thread_, bool connect_,

222 socket_base_t *socket_, const options_t &options_,

223 const char *protocol_, const char *address_) :

224 session_base_t (io_thread_, connect_, socket_, options_, protocol_,

CassandraHost.java (https://github.com/smzorro/hector.git) Java · 238 lines

25

26 /**

27 * By default, we will use TSocket transport on thrift (matches default Cassandra configs)

28 */

29 public static final boolean DEFAULT_USE_FRAMED_THRIFT_TRANSPORT = true;

57

58 private long maxWaitTimeWhenExhausted = DEFAULT_MAX_WAITTIME_WHEN_EXHAUSTED;

59 private int cassandraThriftSocketTimeout;

60 private ExhaustedPolicy exhaustedPolicy = ExhaustedPolicy.WHEN_EXHAUSTED_BLOCK;

61 private boolean useThriftFramedTransport = DEFAULT_USE_FRAMED_THRIFT_TRANSPORT;

183 }

184

185 public void setCassandraThriftSocketTimeout(int cassandraThriftSocketTimeout) {

186 this.cassandraThriftSocketTimeout = cassandraThriftSocketTimeout;

231 }

232

233 public void setUseSocketKeepalive(boolean useSocketKeepalive) {

234 this.useSocketKeepalive = useSocketKeepalive;

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)

TransportCandidate.java (https://github.com/joechen2010/IM.git) Java · 519 lines

20 package net.java.sipmack.media;

21

22 import java.net.SocketException;

23 import java.net.UnknownHostException;

24

53 private TransportCandidate symmetric;

54

55 public void addCandidateEcho() throws SocketException, UnknownHostException {

56 }

57

socket_option.hpp (https://bitbucket.org/sonofusion/.simulation.git) C++ Header · 568 lines

1 //

2 // detail/socket_option.hpp

3 // ~~~~~~~~~~~~~~~~~~~~~~~~

4 //

9 //

10

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 {

34

35 // Helper template for implementing multicast enable loopback options.

net_serial.cpp (https://github.com/libretro/gambatte-libretro.git) C++ · 296 lines

11 #include <ws2tcpip.h>

12 #else

13 #include <sys/socket.h>

14 #include <sys/ioctl.h>

15 #include <netinet/in.h>

76 lastConnectAttempt_ = clock();

77 if (is_server_) {

78 if (!startServerSocket()) {

79 return false;

80 }

83 }

84 } else {

85 if (!startClientSocket()) {

86 return false;

87 }

ListenerService.java (https://github.com/kylape/jboss-as.git) Java · 187 lines

77 this.name = name;

78 this.listenerOptions = listenerOptions;

79 this.socketOptions = socketOptions;

80 }

81

127 serverService.getValue().registerListener(this);

128 try {

129 final InetSocketAddress socketAddress = binding.getValue().getSocketAddress();

130 openListener = createOpenListener();

131 final ChannelListener<AcceptingChannel<StreamConnection>> acceptListener = ChannelListeners.openListenerAdapter(openListener);

156 protected abstract OpenListener createOpenListener();

157

158 abstract void startListening(XnioWorker worker, InetSocketAddress socketAddress, ChannelListener<AcceptingChannel<StreamConnection>> acceptListener) throws IOException;

159

160 abstract void stopListening();

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;

18

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 {

59

60 private static final Logger LOGGER = LoggerFactory

79 @ConditionalOnMissingBean(WebsocketComponent.class)

80 public WebsocketComponent configureWebsocketComponent() throws Exception {

81 WebsocketComponent component = new WebsocketComponent();

display.c (https://github.com/phhusson/QuasselC.git) C · 302 lines

17

18 #include <sys/types.h>

19 #include <sys/socket.h>

20 #include <netdb.h>

21 #include <stdio.h>

NetworkManager.java (https://bitbucket.org/kingbowser/stormclient.git) Java · 294 lines

22 private Socket networkSocket;

23 private final SocketAddress remoteSocketAddress;

24 private DataInputStream socketInputStream;

59 networkSocket = socket;

60 remoteSocketAddress = socket.getRemoteSocketAddress();

61 netHandler = nethandler;

62 try

65 socket.setTrafficClass(24);

66 }

67 catch(SocketException socketexception)

68 {

69 System.err.println(socketexception.getMessage());

71 socketInputStream = new DataInputStream(socket.getInputStream());

72 socketOutputStream = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream(), 5120));

73 readThread = new NetworkReaderThread(this, (new StringBuilder()).append(s).append(" read thread").toString());

74 writeThread = new NetworkWriterThread(this, (new StringBuilder()).append(s).append(" write thread").toString());

RequestStream.cs (https://github.com/gustavo-melo/mono.git) C# · 226 lines

30 #if EMBEDDED_IN_1_0

31 using System.IO;

32 using System.Net.Sockets;

33 using System.Runtime.InteropServices;

34 using System; using System.Net; namespace MonoHttp {

stream.cpp (https://bitbucket.org/liflg/library-boost.git) C++ · 199 lines

27 // ~~~~~~~~~~~~~~~~~~~~~~~

28 // The following test checks that all public member functions on the class

29 // ssl::stream::socket compile and link correctly. Runtime failures are ignored.

30

31 namespace ssl_stream_compile {

74 ssl::stream<ip::tcp::socket> stream1(ioc, context);

75 ip::tcp::socket socket1(ioc, ip::tcp::v4());

76 ssl::stream<ip::tcp::socket&> stream2(socket1, context);

78 // basic_io_object functions.

79

80 ssl::stream<ip::tcp::socket>::executor_type ex = stream1.get_executor();

81 (void)ex;

82

94 (void)ssl1;

95

96 ssl::stream<ip::tcp::socket>::lowest_layer_type& lowest_layer

97 = stream1.lowest_layer();

98 (void)lowest_layer;

StandardSocketOption.html (https://github.com/killme2008/killme2008.github.com.git) HTML · 145 lines

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

8 类 com.google.code.yanf4j.core.impl.StandardSocketOption 的使用 (xmemcached 1.3.8 API)

9 </TITLE>

10

17 {

18 if (location.href.indexOf('is-external=true') == -1) {

19 parent.document.title="类 com.google.code.yanf4j.core.impl.StandardSocketOption 的使用 (xmemcached 1.3.8 API)";

20 }

21 }

41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A>&nbsp;</TD>

42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A>&nbsp;</TD>

43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../com/google/code/yanf4j/core/impl/StandardSocketOption.html" title="com.google.code.yanf4j.core.impl 中的类"><FONT CLASS="NavBarFont1"><B>类</B></FONT></A>&nbsp;</TD>

44 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>使用</B></FONT>&nbsp;</TD>

45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>æ ‘</B></FONT></A>&nbsp;</TD>

Socket_Windows.cpp (https://github.com/benlaurie/keyspace.git) C++ · 354 lines

116

117 nonblocking = 1;

118 if (ioctlsocket(fd.sock, FIONBIO, &nonblocking) == SOCKET_ERROR)

119 return false;

120

165 }

166

167 bool Socket::Accept(Socket *newSocket)

168 {

169 if (!IOProcessorAccept(fd, newSocket->fd))

247 while (left > 0)

248 {

249 if ((nwritten = send((SOCKET) fd.sock, (char*) data, count, 0)) == SOCKET_ERROR)

250 {

251 // TODO error handling

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);

tcp_socket.cpp (https://github.com/bartuer/zeromq2-1.git) C++ · 239 lines

25 #ifdef ZMQ_HAVE_WINDOWS

26

27 zmq::tcp_socket_t::tcp_socket_t () :

28 s (retired_fd)

29 {

30 }

31

32 zmq::tcp_socket_t::~tcp_socket_t ()

33 {

34 if (s != retired_fd)

135 #include <fcntl.h>

136

137 zmq::tcp_socket_t::tcp_socket_t () :

138 s (retired_fd)

139 {

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"

26

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;

36

37 packet = talloc_zero(nbtsock, struct nbt_name_packet);

send.html (https://github.com/redsand/bl4ckJack.git) HTML · 68 lines

6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">

7 <link rel="home" href="../../../boost_asio.html" title="Boost.Asio">

8 <link rel="up" href="../basic_raw_socket.html" title="basic_raw_socket">

9 <link rel="prev" href="reuse_address.html" title="basic_raw_socket::reuse_address">

25 <div class="section">

26 <div class="titlepage"><div><div><h4 class="title">

27 <a name="boost_asio.reference.basic_raw_socket.send"></a><a class="link" href="send.html" title="basic_raw_socket::send">basic_raw_socket::send</a>

28 </h4></div></div></div>

29 <p>

35 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">send</a><span class="special">(</span>

36 <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">);</span>

37 <span class="emphasis"><em>&#187; <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">more...</a></em></span>

38

39 <span class="keyword">template</span><span class="special">&lt;</span>

40 <span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span>

41 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload2.html" title="basic_raw_socket::send (2 of 3 overloads)">send</a><span class="special">(</span>

42 <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">,</span>

43 <span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">message_flags</span> <span class="identifier">flags</span><span class="special">);</span>

send.html (https://github.com/bittorrent/boost_1_44_0.git) HTML · 68 lines

6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">

7 <link rel="home" href="../../../boost_asio.html" title="Boost.Asio">

8 <link rel="up" href="../basic_raw_socket.html" title="basic_raw_socket">

9 <link rel="prev" href="reuse_address.html" title="basic_raw_socket::reuse_address">

25 <div class="section">

26 <div class="titlepage"><div><div><h4 class="title">

27 <a name="boost_asio.reference.basic_raw_socket.send"></a><a class="link" href="send.html" title="basic_raw_socket::send"> basic_raw_socket::send</a>

28 </h4></div></div></div>

29 <p>

35 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">send</a><span class="special">(</span>

36 <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">);</span>

37 <span class="emphasis"><em>&#187; <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">more...</a></em></span>

38

39 <span class="keyword">template</span><span class="special">&lt;</span>

40 <span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span>

41 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload2.html" title="basic_raw_socket::send (2 of 3 overloads)">send</a><span class="special">(</span>

42 <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">,</span>

43 <span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">message_flags</span> <span class="identifier">flags</span><span class="special">);</span>

scsp_config_parse.y (https://bitbucket.org/cooljeanius/dragonflybsd.git) Happy · 396 lines

40 #include <sys/types.h>

41 #include <sys/param.h>

42 #include <sys/socket.h>

43 #include <net/if.h>

44 #include <netinet/in.h>

WebSocketInterceptor.js (https://gitlab.com/_bogdanova/up2u) JavaScript · 219 lines

11 'use strict';

12

13 const RCTWebSocketModule = require('NativeModules').WebSocketModule;

14 const NativeEventEmitter = require('NativeEventEmitter');

15 const base64 = require('base64-js');

16

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);

send.html (https://github.com/tpisto/rmongo.git) HTML · 68 lines

6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">

7 <link rel="home" href="../../../boost_asio.html" title="Boost.Asio">

8 <link rel="up" href="../basic_raw_socket.html" title="basic_raw_socket">

9 <link rel="prev" href="reuse_address.html" title="basic_raw_socket::reuse_address">

25 <div class="section">

26 <div class="titlepage"><div><div><h4 class="title">

27 <a name="boost_asio.reference.basic_raw_socket.send"></a><a class="link" href="send.html" title="basic_raw_socket::send">basic_raw_socket::send</a>

28 </h4></div></div></div>

29 <p>

35 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">send</a><span class="special">(</span>

36 <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">);</span>

37 <span class="emphasis"><em>&#187; <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">more...</a></em></span>

38

39 <span class="keyword">template</span><span class="special">&lt;</span>

40 <span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span>

41 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload2.html" title="basic_raw_socket::send (2 of 3 overloads)">send</a><span class="special">(</span>

42 <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">,</span>

43 <span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">message_flags</span> <span class="identifier">flags</span><span class="special">);</span>

connect_test.js (https://bitbucket.org/factoryEquipment/roshambo.git) JavaScript · 362 lines

92 },

93

94 shouldCorrectlyConnectWithDefaultReplicasetAndSocketOptionsSet : function(test) {

95 // Replica configuration

96 var replSet = new ReplSetServers([

99 new Server( RS.host, RS.ports[2], { auto_reconnect: true } )

100 ],

101 {socketOptions:{keepAlive:100}}

102 );

103

105 db.open(function(err, p_db) {

106 test.equal(null, err);

107 test.equal(100, db.serverConfig.checkoutWriter().socketOptions.keepAlive)

108 test.done();

109 p_db.close();

vhost.h (https://github.com/kernel-digger/linux.git) C Header · 206 lines

25 };

26

27 /* Poll a file (eventfd or socket) */

28 /* Note: there's nothing vhost specific about this structure. */

29 struct vhost_poll {

auxiliar.c (https://bitbucket.org/fireyang/shipgame.git) C · 158 lines

1 /*=========================================================================*\

2 * Auxiliar routines for class hierarchy manipulation

3 * LuaSocket toolkit

4 \*=========================================================================*/

5 #include <string.h>

openfoam-kernel-1.5_p20090311-gcc45.patch (https://github.com/mikehale/portage.git) Patch · 132 lines

120 +CPP = /usr/lib/cpp -P -undef $(GFLAGS)

121

122 PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream

123

124 diff -ur OpenFOAM-1.5.orig/wmake/rules/SunOS64Gcc/general OpenFOAM-1.5/wmake/rules/SunOS64Gcc/general

130 LD = ld -64

131

132 PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream

133

process-packet.P (https://github.com/JTroniks/CyanogenMod-7.git) Prolog · 219 lines

29 bionic/libc/include/sys/syslimits.h \

30 bionic/libc/kernel/common/linux/param.h \

31 bionic/libc/kernel/arch-arm/asm/param.h bionic/libc/include/sys/socket.h \

32 bionic/libc/kernel/common/linux/socket.h \

33 bionic/libc/kernel/arch-arm/asm/socket.h \

34 bionic/libc/kernel/arch-arm/asm/sockios.h \

35 bionic/libc/kernel/common/linux/sockios.h \

138 bionic/libc/include/sys/syslimits.h :

139 bionic/libc/kernel/common/linux/param.h :

140 bionic/libc/kernel/arch-arm/asm/param.h bionic/libc/include/sys/socket.h :

141 bionic/libc/kernel/common/linux/socket.h :

142 bionic/libc/kernel/arch-arm/asm/socket.h :

143 bionic/libc/kernel/arch-arm/asm/sockios.h :

144 bionic/libc/kernel/common/linux/sockios.h :

raw_socket_service.hpp (https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git) C++ Header · 378 lines

1 //

2 // raw_socket_service.hpp

3 // ~~~~~~~~~~~~~~~~~~~~~~

4 //

9 //

10

11 #ifndef BOOST_ASIO_RAW_SOCKET_SERVICE_HPP

12 #define BOOST_ASIO_RAW_SOCKET_SERVICE_HPP

22

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 }

132

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,

BluetoothCommunicationService.java (https://github.com/mewsicalcat/RcCar.git) Java · 523 lines

103 * This device is connected to the remote device via BluetoothSocket

104 * @param socket the socket which the devices use to communication

105 * @param device the remove device this device is in communication with

106 */

107 public synchronized void connected(BluetoothSocket socket, BluetoothDevice device)

108 {

109 Log.d("ARG", "connected()");

232 try

233 {

234 socket = mServerSocket.accept();

235 Log.d("ARG", "still running mServerSocket.accept()");

440 public ConnectedThread(BluetoothSocket socket)

441 {

442 mSocket = socket;

443 InputStream tempIn = null;

444 OutputStream tempOut = null;

UDPConnection.java (https://github.com/zootella/Lost-in-the-Space.git) Java · 235 lines

15 * A reliable UDP connection.

16 */

17 class UDPConnection extends AbstractNBSocket implements RUDPSocket {

18

19 /** Channel backing the socket. */

80 @Override

81 public InetAddress getInetAddress() {

82 return ((InetSocketAddress)getRemoteSocketAddress()).getAddress();

83 }

84

85 @Override

86 public int getPort() {

87 return ((InetSocketAddress)getRemoteSocketAddress()).getPort();

88 }

89

94

95 @Override

96 public SocketAddress getLocalSocketAddress() {

97 return new InetSocketAddress(getLocalAddress(), getLocalPort());

Message.h (https://gitlab.com/edelmaks/iOS-iphoneheaders) C Header · 147 lines

81 #import <Message/MFOutgoingMessageDelivery.h>

82 #import <Message/MFStream.h>

83 #import <Message/_MFSocket.h>

84 #import <Message/MFConnection.h>

85 #import <Message/MFConnectionSettings.h>

packet.cpp (https://github.com/buzzer/Taser-Player-Driver.git) C++ · 359 lines

31 }

32

33 bool Packet::send(QAbstractSocket* socket)

34 {

35 // logger->Packet("Packet::send()");

36

37 if(socket->socketType() == QAbstractSocket::TcpSocket && socket->state() != QAbstractSocket::ConnectedState)

38 {

39 logger->Packet("Packet::send(): The given TCP socket is not in connected state, cannot send!");

44 finalize();

45

46 // logger->Packet("Packet::send(): now calling socket->write()");

47 if(socket->write((const char*)_buffer, *_packetSize) < 0)

48 {

49 logger->Packet("Packet::send(): couldn't send the packet: %s.", qPrintable(socket->errorString()));

50 return false;

51 }

check-environment.php (https://github.com/Exercise/zf2.git) PHP · 323 lines

16 define('MIN_ZF_VERSION', '2.0.0dev1');

17

18 define('SOCKET_TIMEOUT', 5); // seconds

19

20 $failed = false;

23 // -----------------------------------------------------------------------------

24

25 ini_set('default_socket_timeout', SOCKET_TIMEOUT);

26

27 printf('%sEnvironment Checker for Zend Framework LiveDocx Component%s%s', PHP_EOL, PHP_EOL, PHP_EOL);

multiplayersession.js (https://bitbucket.org/Wayno1979/test-game.git) JavaScript · 237 lines

31 packet += messageData;

32 }

33 var socket = this.socket;

34 if(socket) {

75 var gameSessionId = this.gameSessionId;

76 this.gameSessionId = null;

77 var socket = this.socket;

78 if(socket) {

209 socket.onopen = function multiPlayerOnOpen() {

210 ms.socket = socket;

211 socket.onopen = null;

225 }

226 };

227 socket.onclose = socket.onerror = multiPlayerConnectionError;

228 } catch (exc) {

229 multiPlayerConnectionError();

client.py (https://github.com/guesslin/Hale.git) Python · 214 lines

19 ################################################################################

20

21 import xmlrpclib, socket

22 import cmd, sys, os, getpass

23

71 print "Incorrect login/password\n"

72 continue

73 except socket.error:

74 print "Incorrect login/password\n"

75 continue

dclib0-ssl.patch (https://github.com/danielj7/fink-dists.git) Patch · 344 lines

276 @@ -14,7 +14,7 @@

277 chublistmanager.cpp chublistmanager.h csearchmanager.cpp csearchmanager.h \

278 csearchsocket.cpp csearchsocket.h

279

280 -libdc_la_LDFLAGS = -version-info 0:1 core/libcore.la hash/libhash.la $(XML_LIBS) $(LIBSSL) $(SSL_LDFLAGS) -rdynamic

287 +++ dclib-0.3.3/dclib/Makefile.in Thu Aug 19 10:18:56 2004

288 @@ -171,7 +171,7 @@

289 csearchsocket.cpp csearchsocket.h

290

291

Makefile (https://github.com/RaimoNiskanen/otp.git) Makefile · 184 lines

81 ssl_crl_cache \

82 ssl_crl_hash_dir \

83 tls_socket \

84 dtls_socket \

send.html (https://github.com/coxlab/boost_patched_for_objcplusplus.git) HTML · 68 lines

6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.1">

7 <link rel="home" href="../../../boost_asio.html" title="Boost.Asio">

8 <link rel="up" href="../basic_raw_socket.html" title="basic_raw_socket">

9 <link rel="prev" href="reuse_address.html" title="basic_raw_socket::reuse_address">

21 <hr>

22 <div class="spirit-nav">

23 <a accesskey="p" href="reuse_address.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_raw_socket.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="send/overload1.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>

24 </div>

25 <div class="section" title="basic_raw_socket::send">

26 <div class="titlepage"><div><div><h4 class="title">

27 <a name="boost_asio.reference.basic_raw_socket.send"></a><a class="link" href="send.html" title="basic_raw_socket::send"> basic_raw_socket::send</a>

28 </h4></div></div></div>

29 <p>

33 <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>

34 <span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span>

35 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">send</a><span class="special">(</span>

36 <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">);</span>

37 <span class="emphasis"><em>» <a class="link" href="send/overload1.html" title="basic_raw_socket::send (1 of 3 overloads)">more...</a></em></span>

mach-gta02.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 646 lines ✨ Summary

This C code defines a machine configuration for the GTA02 Neo1973 smartphone. It sets up various hardware components, such as USB, I2C, UARTs, and power management, and initializes the system with a custom panic handler and timer. The code also defines platform devices and registers them with the Linux kernel, allowing the device to interact with the operating system.

153 /*

154 * On GTA02 the 1A charger features a 48K resistor to 0V on the ID pin.

155 * We use this to recognize that we can pull 1A from the USB socket.

156 *

157 * These constants are the measured pcf50633 ADC levels with the 1A

qmovie.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1089 lines

900

901 Note that, if the image data comes from a sequential device (e.g. a

902 socket), QMovie can only loop the movie if the cacheMode is set to

903 QMovie::CacheAll.

904 */

raw.h (http://photon-android.googlecode.com/svn/) C++ Header · 60 lines ✨ Summary

This C header file defines an implementation of the RAW-IP module for the LINUX operating system, providing functions and data structures for handling raw IP packets, including error handling, packet delivery, and hash table management. It also provides support for proc filesystem operations and sequence number management.

1 /*

2 * INET An implementation of the TCP/IP protocol suite for the LINUX

3 * operating system. INET is implemented using the BSD Socket

4 * interface as the means of communication with the user level.

5 *

arpping.c (git://pkgs.fedoraproject.org/busybox) C · 129 lines

44 int timeout_ms;

45 struct pollfd pfd[1];

46 #define s (pfd[0].fd) /* socket */

47 int rv = 1; /* "no reply received" yet */

48 struct sockaddr addr; /* for interface name */

49 struct arpMsg arp;

50

51 s = socket(PF_PACKET, SOCK_PACKET, htons(ETH_P_ARP));

52 if (s == -1) {

53 bb_perror_msg(bb_msg_can_not_create_raw_socket);

56

57 if (setsockopt_broadcast(s) == -1) {

58 bb_perror_msg("can't enable bcast on raw socket");

59 goto ret;

60 }

pvwave.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 723 lines

427 <KEYWORD1>smooth</KEYWORD1>

428 <KEYWORD1>sobel</KEYWORD1>

429 <KEYWORD1>socket_accept</KEYWORD1>

430 <KEYWORD1>socket_close</KEYWORD1>

431 <KEYWORD1>socket_connect</KEYWORD1>

432 <KEYWORD1>socket_getport</KEYWORD1>

433 <KEYWORD1>socket_init</KEYWORD1>

434 <KEYWORD1>socket_read</KEYWORD1>

435 <KEYWORD1>socket_write</KEYWORD1>

436 <KEYWORD1>sort</KEYWORD1>

437 <KEYWORD1>sortn</KEYWORD1>

actionscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 830 lines

124 <KEYWORD3>XML</KEYWORD3>

125 <KEYWORD3>XMLNode</KEYWORD3>

126 <KEYWORD3>XMLSocket</KEYWORD3>

127

128 <!-- Literals -->

Remote.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 216 lines ✨ Summary

This Java code is a remote executor that allows users to execute scripts on a BshServlet or embedded interpreter using HTTP or telnet. It takes a URL and script as input, sends the script to the server, and prints the output to the console. The return value of the script is scraped from the result and returned as an integer.

107 System.out.println("Connecting to host : "

108 + host + " at port : " + port);

109 Socket s = new Socket(host, Integer.parseInt(port) + 1);

110

111 out = s.getOutputStream();

perl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 595 lines

370 <!--<KEYWORD3>use</KEYWORD3>-->

371

372 <!-- Low-level socket functions -->

373 <KEYWORD3>accept</KEYWORD3>

374 <KEYWORD3>bind</KEYWORD3>

382 <KEYWORD3>setsockopt</KEYWORD3>

383 <KEYWORD3>shutdown</KEYWORD3>

384 <KEYWORD3>socket</KEYWORD3>

385 <KEYWORD3>socketpair</KEYWORD3>

TServerSocketKeepAlive.java (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines

19 package org.apache.hadoop.hive.metastore;

20

21 import java.net.SocketException;

22

23 import org.apache.thrift.transport.TServerSocket;

24 import org.apache.thrift.transport.TSocket;

25 import org.apache.thrift.transport.TTransportException;

26

27 /**

28 * TServerSocketKeepAlive - like TServerSocket, but will enable keepalive for

29 * accepted sockets.

30 *

31 */

32 public class TServerSocketKeepAlive extends TServerSocket {

33 public TServerSocketKeepAlive(int port) throws TTransportException {

Activator.java (http://keywatch.googlecode.com/svn/trunk/) Java · 262 lines ✨ Summary

This Java code is an Activator class for an OSGi bundle, which sets up a web server using Jetty to host a web application. It provides access to services and implements various listener interfaces to handle bundle events and framework updates. The code initializes the servlet container, adds context, and starts the server when the bundle starts, stopping it when the bundle stops.

19 import org.mortbay.jetty.Server;

20 import org.mortbay.jetty.servlet.WebApplicationContext;

21 import org.mortbay.http.SocketListener;

22 import keymind.keywatch.common.IOSGIServiceAccess;

23 import keymind.keywatch.common.Log;

36

37 private Server servletserver = null;

38 private SocketListener listener = null;

39 private WebApplicationContext srvctx = null;

40 private static IOSGIServiceAccess serviceAccess;

75 // Initialize the servlet-container

76 servletserver = new Server();

77 listener = new SocketListener();

78 listener.setPort(Integer.parseInt(System.getProperty(HTTP_PORT, HTTP_DEFAULT_PORT)));

79 servletserver.addListener(listener);

encoder.py (git://github.com/darwin/drydrop.git) Python · 434 lines ✨ Summary

This code defines a custom JSON encoder for Python, allowing for more control over how complex data types are serialized to JSON. It provides a way to customize the encoding of various data types, such as lists, dictionaries, and floats, by implementing custom _iterencode functions. This can be useful for specific use cases where standard JSON serialization does not meet requirements.

204

205 for chunk in JSONEncoder().iterencode(bigobject):

206 mysocket.write(chunk)

207

208 """

scm.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 317 lines ✨ Summary

This C code implements a part of the Linux kernel’s file descriptor management system, specifically for sending file descriptors over network connections using the SCM_RIGHTS message type. It allows a process to send its open files to another process, which can then receive and use them without having to create new file descriptors. The code provides functions for creating, manipulating, and sending file descriptor lists between processes.

1 /* scm.c - Socket level control messages processing.

2 *

3 * Author: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>

18 #include <linux/kernel.h>

19 #include <linux/stat.h>

20 #include <linux/socket.h>

21 #include <linux/file.h>

22 #include <linux/fcntl.h>

131 }

132

133 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p)

134 {

135 struct cmsghdr *cmsg;

144 that parser checks cmsg_len in any case, so that

145 additional check would be work duplication.

146 But if cmsg_level is not SOL_SOCKET, we do not check

147 for too short ancillary data object at all! Oops.

148 OK, let's add it...

FtpClient.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 1046 lines ✨ Summary

This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.

97 **/

98 public void connect(String hostName, int port) throws IOException {

99 cmdSocket = new Socket(hostName, port);

100 in = new BufferedReader(new InputStreamReader(

101 cmdSocket.getInputStream()));

267 public void dataPort() throws IOException, UnknownHostException {

268 StringBuffer command = new StringBuffer("PORT ");

269 String host = cmdSocket.getLocalAddress().getHostAddress();

270 command.append(host.replace('.', ','));

271 if (dataSocket != null) {

272 dataSocket.close();

273 }

274 dataSocket = new ServerSocket(0);

275 int port = dataSocket.getLocalPort();

310 remoteAddr = remoteAddr.substring(0, comma2).replace(',', '.');

311

312 passiveSocket = new Socket(remoteAddr, port);

313 }

314

FtpOutputStream.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 49 lines ✨ Summary

This Java class, FtpOutputStream, extends FilterOutputStream to provide an FTP client’s writer functionality. It takes an OutputStream and an FtpClient as parameters in its constructor. The class overrides the close() method to close the underlying writer and signal the FTP client that writing is complete.

36 public void close() throws IOException {

37 super.close();

38 client.closeTransferSocket();

39 }

40

ServerKiller.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 134 lines ✨ Summary

This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.

72 int key = Integer.parseInt(in.readLine());

73

74 Socket socket = new Socket(InetAddress.getByName("127.0.0.1"),port);

75 DataOutputStream out = new DataOutputStream(

76 socket.getOutputStream());

77 out.writeInt(key);

78

79 // we can't close the socket cleanly, because we want

80 // to wait for complete exit, and then it's too late.

81 // so the socket is closed when the JVM is shut down.

88 try

89 {

90 socket.getInputStream().read();

91 }

92 catch(Exception e)

manual.html (http://angel-engine.googlecode.com/svn/trunk/) HTML · 272 lines ✨ Summary

This HTML code is a documentation page for a Lua library called lfs (File System). It provides information on various functions and methods related to file system operations, such as creating directories, setting file modes, and managing links. The content is structured in a table format with brief descriptions of each function.

124 <dt><strong><code>mode</code></strong></dt>

125 <dd>string representing the associated protection mode (the values could be

126 <code>file</code>, <code>directory</code>, <code>link</code>, <code>socket</code>,

127 <code>named pipe</code>, <code>char device</code>, <code>block device</code> or

128 <code>other</code>)</dd>

Buffer.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 2124 lines ✨ Summary

This Java code is part of a text editor’s implementation, specifically for managing buffers and their properties. It handles buffer creation, saving, loading, and updating, as well as handling autosave features and undo/redo functionality. The code updates various flags and properties to reflect changes in the buffer’s state, such as dirty status, file path, and mode.

27 import java.io.File;

28 import java.io.IOException;

29 import java.net.Socket;

30 import java.util.Arrays;

31 import java.util.List;

kernel-docs.txt (http://photon-android.googlecode.com/svn/) Plain Text · 762 lines

461 URL: http://www.cs.unh.edu/cnrg/gherrin

462 Keywords: network, networking, protocol, IP, UDP, TCP, connection,

463 socket, receiving, transmitting, forwarding, routing, packets,

464 modules, /proc, sk_buff, FIB, tags.

465 Description: Excellent paper devoted to the Linux IP Networking,

SettableSocketOption.qbk (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

6 /]

7

8 [section:SettableSocketOption Settable socket option requirements]

9

10 In the table below, `X` denotes a socket option class, `a` denotes a value of

12 protocol] requirements, and `u` denotes an identifier.

13

14 [table SettableSocketOption requirements

15 [[expression] [type] [assertion/note\npre/post-conditions]]

16 [

add_negative_campaign_criterion.rb (https://code.google.com/p/google-api-ads-ruby/) Ruby · 96 lines ✨ Summary

This Ruby script creates a negative campaign criterion for a given campaign using the Google AdWords API. It adds a placement criterion to a specified campaign, specifying a URL. The script handles connection errors and API exceptions, providing error messages and details about the issue.

71

72 # Connection error. Likely transitory.

73 rescue Errno::ECONNRESET, SOAP::HTTPStreamError, SocketError => e

74 puts 'Connection Error: %s' % e

75 puts 'Source: %s' % e.backtrace.first

AssemblyInfo.cs (http://counterstrike.googlecode.com/svn/trunk/) C# · 36 lines ✨ Summary

This C# code defines metadata for an assembly, providing information about its title, company, and version number. It also specifies settings for COM visibility and provides a GUID for the assembly’s type library. The AssemblyVersion and AssemblyFileVersion attributes define the assembly’s version numbers, with optional default values for revision and build numbers.

6 // set of attributes. Change these attribute values to modify the information

7 // associated with an assembly.

8 [assembly: AssemblyTitle("SocketTest")]

9 [assembly: AssemblyDescription("")]

10 [assembly: AssemblyConfiguration("")]

11 [assembly: AssemblyCompany("")]

12 [assembly: AssemblyProduct("SocketTest")]

13 [assembly: AssemblyCopyright("Copyright Å  2009")]

14 [assembly: AssemblyTrademark("")]

1.t (https://bitbucket.org/freebsd/freebsd-head/) Unknown · 78 lines

62 /usr/ucb/lprm program to delete jobs from a queue

63 /etc/lpc program to administer printers and spooling queues

64 /dev/printer socket on which lpd listens

65 .TE

66 .DE

pcnet_cs.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 1797 lines ✨ Summary

This C code defines a Linux kernel module that provides support for PCMCIA (Personal Computer Memory Card International) network cards, specifically those using the PCnet CS chipset. It registers a driver with the pcmcia_register_driver function and provides probe, remove, suspend, and resume functions to manage the device’s lifecycle. The code is part of the Linux kernel’s networking subsystem.

8 mode, and the IBM Credit Card Adapter, the NE4100, the Thomas

9 Conrad ethernet card, and the Kingston KNE-PCM/x in shared-memory

10 mode. It will also handle the Socket EA card in either mode.

11

12 Copyright (C) 1999 David A. Hinds -- dahinds@users.sourceforge.net

25 Based also on Keith Moore's changes to Don Becker's code, for IBM

26 CCAE support. Drivers merged back together, and shared-memory

27 Socket EA support added, by Ken Raeburn, September 1995.

28

29 ======================================================================*/

59 #define PCNET_DATAPORT 0x10 /* NatSemi-defined port window offset. */

60 #define PCNET_RESET 0x1f /* Issue a read to reset, a write to clear. */

61 #define PCNET_MISC 0x18 /* For IBM CCAE and Socket EA cards */

62

63 #define PCNET_START_PG 0x40 /* First page of TX buffer */

filter.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 156 lines ✨ Summary

This C header file defines data structures and macros for Linux socket filters, which are used to inspect and modify network packets. It provides definitions for filter blocks, instruction classes, and macros for initializing filter block arrays. The code also includes functions for attaching, detaching, and running filters on sockets and sk_buffs, allowing developers to implement custom packet inspection and modification functionality.

1 /*

2 * Linux Socket Filter Data Structures

3 */

4