fix annotation (#1903)

This commit is contained in:
chengf2018
2024-04-24 10:16:17 +08:00
committed by GitHub
parent caf513e6c0
commit 1a0041982b

View File

@@ -192,20 +192,20 @@ struct request_udp {
/* /*
The first byte is TYPE The first byte is TYPE
R Resume socket
S Start socket S Pause socket
B Bind socket B Bind socket
L Listen socket L Listen socket
K Close socket K Close socket
O Connect to (Open) O Connect to (Open)
X Exit X Exit socket thread
W Enable write
D Send package (high) D Send package (high)
P Send package (low) P Send package (low)
A Send UDP package A Send UDP package
C set udp address
T Set opt T Set opt
U Create UDP socket U Create UDP socket
C set udp address
Q query info
*/ */
struct request_package { struct request_package {
@@ -1372,6 +1372,7 @@ ctrl_cmd(struct socket_server *ss, struct socket_message *result) {
int type = header[0]; int type = header[0];
int len = header[1]; int len = header[1];
block_readpipe(fd, buffer, len); block_readpipe(fd, buffer, len);
// ctrl command only exist in local fd, so don't worry about endian. // ctrl command only exist in local fd, so don't worry about endian.
switch (type) { switch (type) {
case 'R': case 'R':