packet =enet_packet_create(cdata, RSTRING_LEN(data) +1, ENET_PACKET_FLAG_RELIABLE); }else{ packet =enet_packet_create(cdata, RSTRING_LEN(data) +1,0); } enet_peer_send(connection->peer, NUM2UINT(channel), packet); } rb_mutex_unlock(lock);returnQnil; } 开发者ID:jvranish,项目名称...