|
|
@@ -361,6 +361,21 @@ int join_session(int sid) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+int quit_session(int sid) {
|
|
|
+ struct vcc_request req;
|
|
|
+
|
|
|
+ clear_req(&req);
|
|
|
+
|
|
|
+ req.magic = htonl(VCC_MAGIC);
|
|
|
+ req.reqtype = htonl(REQ_CTL_QUITS);
|
|
|
+ req.session = htonl(sid);
|
|
|
+
|
|
|
+ write(fd, &req, REQ_SIZE);
|
|
|
+
|
|
|
+ return 0;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
int session_name(int sid, char *buf) {
|
|
|
struct vcc_request req;
|
|
|
|