小范围修改 删除打印
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
void client_read_cb(struct bufferevent *bev, void *ctx);
|
||||
void client_write_cb(struct bufferevent *bev, void *ctx);
|
||||
|
||||
int main() {
|
||||
int main(int argc, char **argv) {
|
||||
event_base *base = event_base_new();
|
||||
bufferevent* bev = bufferevent_socket_new(base, -1, BEV_OPT_CLOSE_ON_FREE);
|
||||
sockaddr_in c_sin = {0};
|
||||
@@ -33,7 +33,7 @@ int main() {
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
auto request = new Request(mp::MP_REQUEST_LOGIN, 783556037, "Aa316216");
|
||||
auto request = new Request(mp::MP_REQUEST_LOGIN, 7835560371, "Aa316216");
|
||||
auto packet = request->operator()();
|
||||
bufferevent_write(bev, packet.c_str(), packet.size());
|
||||
|
||||
15
MC/gui/CMakeLists.txt
Normal file
15
MC/gui/CMakeLists.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
project(GUI)
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/include/fltk)
|
||||
link_directories(${CMAKE_SOURCE_DIR}/lib/fltk)
|
||||
|
||||
add_executable(GUI main.cpp)
|
||||
|
||||
target_link_libraries(GUI
|
||||
fltk
|
||||
# fltk_gl
|
||||
# libfltk_forms.a
|
||||
# libfltk_images.a
|
||||
# libfltk_cairo.a
|
||||
m X11 Xext pthread Xinerama Xfixes Xcursor Xft Xrender m fontconfig dl
|
||||
)
|
||||
19
MC/gui/main.cpp
Normal file
19
MC/gui/main.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Created by dongl on 23-5-3.
|
||||
//
|
||||
|
||||
//#include "FL/Fl.H"
|
||||
//#include "FL/Fl_Window.H"
|
||||
//#include "FL/Fl_Box.H"
|
||||
//
|
||||
//int main(int argc, char **argv) {
|
||||
// Fl_Window *window = new Fl_Window(800,450);
|
||||
// Fl_Box *box = new Fl_Box(20,40,300,100);
|
||||
// box->box(FL_UP_BOX);
|
||||
//// box->labelfont(FL_BOLD + FL_ITALIC);
|
||||
//// box->labelsize(36);
|
||||
// box->labeltype(FL_SHADOW_LABEL);
|
||||
// window->end(); // 不会再添加任何小部件
|
||||
// window->show(argc, argv); // 进入事件循环
|
||||
// return Fl::run();
|
||||
//}
|
||||
Reference in New Issue
Block a user