mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
fix annotation (#1903)
This commit is contained in:
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user