// 发送链表缓冲区数据 static int send_list(struct socket_server *ss, struct socket *s, struct wb_list *list, struct socket_message *result) { if (s->protocol == PROTOCOL_TCP) { return send_list_tcp(ss, s, list, result); } else { return send_list_udp(ss, s, list, result); } }
int socket_server::send_list(struct socket *s, struct wb_list *list, struct socket_message *result) { if (s->type == PROTOCOL_TCP) { return send_list_tcp(s, list, result); } else { return 0; } }