Exemplo n.º 1
0
// 发送链表缓冲区数据
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);
	}
}
Exemplo n.º 2
0
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;
    }
}