精华内容
下载资源
问答
  • Sockets

    2020-12-27 16:48:48
    Sockets added to RIS, now will add sockets on and through drops (needs to be configured). <p><img alt="image" src=...
  • sockets

    2008-06-06 12:48:00
    一般有Http、Ftp、Socks、Telnet等代理服务器类型,Http、Ftp和Telnet代理服务器顾名思义就是分别代理网页浏览、文件传输和远程登录,而Socks是一种可遇不可求的全能代理――前面所有的功能它都可以实现。...
     
    
    一般有HttpFtpSocksTelnet等代理服务器类型,HttpFtpTelnet代理服务器顾名思义就是分别代理网页浏览、文件传输和远程登录,而Socks是一种可遇不可求的全能代理――前面所有的功能它都可以实现。Socks代理又分为Socks4Socks5Socks4代理只支持TCP协议(传输控制协议)Socks5代理支持TCPUDP协议(用户数据报协议)还支持各种身份验证机制,服务器端域名解析等。Socks4能干的Socks5都可以干反过来就不行了,如ICQ只能用Socks5代理。
     
    展开全文
  • UDP Sockets

    2020-12-02 22:16:37
    <p>Is this supposed to work with UDP sockets as well? <p>Did somebody try this? <p>Thanks, <p>softworkz</p><p>该提问来源于开源项目:mgravell/Pipelines.Sockets.Unofficial</p></div>
  • Unix Sockets

    2020-12-08 21:32:07
    <div><p>Can you add the option to use this when redis uses unix sockets, instead of ip:port?</p><p>该提问来源于开源项目:1ma/RedisSessionHandler</p></div>
  • Drop sockets

    2020-12-27 22:26:25
    <div><p>Replace sockets by streams, these are simpler to use and better supported. <p>Two other minor changes: rename ServerIP for clarity (DNS names are also supported) and include a reason for ...
  • Stream Sockets

    2020-12-01 12:04:32
    <div><p>This is a work in progress for refactoring Boris to use the socket support of the stream extension, which is the preferred API for dealing with sockets in PHP.</p> <p>This also drops the ...
  • <div><p>I am wondering why py4j uses network sockets. They pose a security treat, as with docker (which changed to local socket). <p>Is there any design constraint I haven't taken into account? If...
  • Sockets.rar

    2019-05-09 19:51:47
    c++ sockets library window是版本编译.基于2.3.9.9的版本修改编译,不含SSL和XML模块
  • Support UNIX sockets

    2021-01-07 01:39:33
    <p>UNIX domain sockets should offer better performance than TCP sockets over loopback interface (less copying of data, fewer context switches). ...
  • Web Sockets

    2018-04-16 18:03:04
    Web Sockets的目标是在一个单独的持久连接上提供全双工,双向通信。 //要创建Web Sockets,先实例化一个websockets对象并传入要连接的的URL: var socket = new Web Sockets("ws://...

    浏览器API 。Web Sockets的目标是在一个单独的持久连接上提供全双工,双向通信。

     //要创建Web Sockets,先实例化一个websockets对象并传入要连接的的URL:
     var socket = new Web Sockets("ws://www.123.com/server.php");
    //注意:必须给websockets构造函数传入绝对URL。同源策略对Web Sockets不适用,
    //因此可以通过它打开任何站点的连接。至于是否与某个域名的页面通信,则完全取决于服务器。
    //实例化了websocket对象后,浏览器就会马上尝试创建连接。与XHR类似,websockets也有一个表示
    //当前状态的readyState属性。不过这个属性的值与XHR并不相同。
    WebSocket.OPENING(0):正在建立连接。
    WebSocket.OPEN(1):已经建立连接。
    WebSocket.CLOSEING(2):正在关闭连接。
    WebSocket.CLOSE(3):已经关闭连接。
    // WebSocket没有readystatechange事件;不过,他有其他事件,对应着不同的状态。readyState的值永远从0开始。

     2. 发送和接受数据

    Web Sockets打开之后,就可以通过连接发送和接受数据。要向服务器发送数据,使用send()方法并传入任意字符串。

    var socket = new Web Sockets("ws://www.123.com/server.php");
    socket.send("hello")

    因为Web Sockets 只能通过发送纯文本数据,所以对于复杂数据类型数据结构,咋通过连接发送之前,必须进行序列化。

    当服务器想客户端放来消息时,websocket对象就会触发message事件。这个meeage事件与其他传递消息的协议类似,也是把返回的数据保存在event.data属性中。

     socket.onmeeage = function (event) {
         var data = event.data;
         // 处理数据	
     } // 与通过send()发送到服务器的数据一样。event.data中返回的数据也是字符串。如果想得到其他格式的数据,必须手工解析这些数据。

     3. 其他事件

    WebSocket 对象还有其他三个事件,在连接生命周期的不同阶段触发。

    open: 在成功建立连接时触发。

    error:在发生错误是触发,连接不能持续。

    close:在连接关闭时触发。


    展开全文
  • Ftpd leaks sockets

    2021-01-02 22:36:58
    <div><p>Currently there is no way to close the server and be sure all sockets are closed. The close() method only closes the main listening socket but not the data sockets. Is there any way around ...
  • Sockets使用

    2019-09-25 02:39:25
    服务端 using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Threading;using System.Net.Sockets;using System.Net; namespace Client{ public partial class Form1 :...

    服务端

    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Threading;
    using System.Net.Sockets;
    using System.Net;

    namespace Client
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }
    public bool serviceState = true;//服务状态,停止

     

    TcpListener listener;
    private void button1_Click(object sender, EventArgs e)
    {
    IPAddress localAddress = IPAddress.Parse("172.26.87.20");//提供一个协议 ip的一个地址
    listener = new TcpListener(localAddress, 1234);
    listener.Start();//执行
    Thread myThread = new Thread(ListenClientConnect);
    myThread.Start();
    btnStart.Enabled = false;
    btnStart.Enabled = true;
    }

    public void ListenClientConnect()
    {
    while (serviceState)
    {
    TcpClient client = listener.AcceptTcpClient();//接受client
    byte[] buffer = new byte[client.ReceiveBufferSize];
    NetworkStream stream = client.GetStream();//获取网络流
    stream.Read(buffer, 0, buffer.Length);
    stream.Close();
    client.Close();
    textBox1.Text = Encoding.Default.GetString(buffer).Trim();
    Thread.Sleep(100);

    }

    }

    private void Form1_Load(object sender, EventArgs e)
    {
    Control.CheckForIllegalCrossThreadCalls = false;
    }

    客户端

    using System.Net.Sockets;

    private void NewMethod()
    {
    TcpClient client = new TcpClient("172.26.87.20", 1234);
    NetworkStream p = client.GetStream();
    byte[] send = Encoding.Default.GetBytes(textBox1.Text);
    p.Write(send, 0, send.Length);
    p.Flush();

    p.Close();
    client.Close();
    }

     

    转载于:https://www.cnblogs.com/net520/p/7832250.html

    展开全文
  • sockets repository?

    2020-12-30 09:44:27
    <div><p>Hey, I've been trying to ... anyone know how to get the sockets? https://github.com/Minds/sockets shows a 404 error.... <p>thanks.</p><p>该提问来源于开源项目:Minds/minds</p></div>
  • Add raw sockets

    2020-11-30 03:05:39
    t support raw sockets, low-level utilities like <code>ping</code> and custom IP protocols are impossible to implement. <p><strong>Solution</strong>: implement raw sockets, provide an example of their ...
  • Web Sockets ?

    2020-12-28 16:26:11
    <div><p>There are no mentions of Web Sockets in current version of document (4.0) <p>As you can guess - very often Websockets are being a second-class citizen, missing some (or all) security ...
  • Sockets test failed

    2020-12-02 08:55:27
    [ 57%] Building CXX object CMakeFiles/sockets_test.dir/tests/sockets.cpp.o [ 61%] Linking CXX executable sockets_test [ 61%] Built target sockets_test Scanning dependencies of target fcgistreambuf_...
  • <p>These arrays are allocated <a href="https://github.com/ofiwg/libfabric/blob/7bb4d2307cdd41ebebbf0ed1fb8d99fc18a76c54/prov/sockets/src/sock_ep.c#L1742">here (for example rx_array)</a></p> ...
  • Web Sockets library

    2020-12-04 16:44:14
    <div><p>Let's make an idiomatic, Rust-y interface for working with Web Sockets!</p><p>该提问来源于开源项目:rustwasm/gloo</p></div>
  • Web sockets support

    2020-12-29 06:11:41
    <div><p>Implement web sockets support starting from geth 1.4 https://github.com/ethereum/go-ethereum/releases/tag/v1.4.0</p><p>该提问来源于开源项目:Nethereum/Nethereum</p></div>
  • Fix Sockets implementation

    2020-11-24 12:33:28
    <div><p>Fix 2 problems with the sockets implementation, infinite error loop waiting for input, and data corruption problem.</p><p>该提问来源于开源项目:codenameone/CodenameOne</p></div>
  • <div><p>Move secure sockets integration below <code>zsock_*</code> API, to allow them to use FD posix APIs - read/write/ioctl. <p>Signed-off-by: Robert Lubos </p><p>该提问来源于开源项目:...
  • unix sockets?

    2020-12-09 02:00:31
    <div><p>Hi there, ...m wondering how to set it up to support unix sockets ? Appears to only work for tcp .. </p><p>该提问来源于开源项目:steverobbins/Magento-Redismanager</p></div>
  • tcp and sockets

    2020-11-26 23:43:25
    <div><p>If I want to run pgbouncer on the postgresql server, how do I make sure that tcp is used for incoming client requests, but sockets, not tcp, are used for pgbouncer talking locally with ...
  • TCP Sockets编程.pdf

    2019-01-15 17:36:27
    TCP Sockets编程.pdf

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 23,560
精华内容 9,424
关键字:

sockets