当前位置: 首页 > 工具软件 > TCPDUMP > 使用案例 >

tcpdump win

程招
2023-12-01

 win window

win--就是告诉对方自己能接受多大的数据。

Window is the number of bytes of receive buffer space available the other direction on this connection.

import socket
import time
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
SEND_BUF_SIZE = 13
RECV_BUF_SIZE = 19
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.setsockopt( socket.SOL_SOCKET, socket.SO_SNDBUF, SEND_BUF_SIZE)
s.setsockopt( socket.SOL_SOCKET, socket.SO_RCVBUF, RECV_BUF_SIZE)
print s.getsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF)
print s.getsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF)


C:\Python27\python.exe C:/Users/TLCB/PycharmProjects/untitled2/http/t5.py
19
13

RECV_BUF_SIZE 19
客户端定义SEND_BUF_SIZE 13





node1:/root#tcpdump -S -i eth1 '((tcp) and  (port 8080) and (host 192.168.137.1))'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 by
 类似资料:

相关阅读

相关文章

相关问答