• 大小: 395KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: 其他
  • 标签: LINPOP  

资源简介

服务器和客户端,局域网聊天软件,采用了UDP协议,客户端发给服务器,服务器转发给另外的客户端

资源截图

代码片段和文件信息

#include 
gint destroy(GtkWidget *gpointer);
int main(int argc char* argv[])
{
GtkWidget *window;
gtk_init(&argc&argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window)“i love you“);
gtk_window_set_resizable(GTK_WINDOW(window)FALSE);
g_signal_connect(GTK_object(window)“destroy“G_CALLBACK(destroy)NULL);
gtk_widget_show(window);
gtk_main();
return 0;
}
gint destroy(GtkWidget *widgetgpointer gdata)
{
g_print(“Quitting!\n“);
gtk_main_quit();
return(FALSE);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-09-09 21:50  Linpop\
     目录           0  2011-09-09 21:50  Linpop\desktop\
     文件         516  2011-08-31 18:25  Linpop\desktop\a.c
     文件         528  2011-08-31 19:03  Linpop\desktop\b.c
     文件        1271  2011-08-31 19:49  Linpop\desktop\c.c
     文件        2359  2011-09-07 17:49  Linpop\desktop\client.c
     文件        2359  2011-09-03 10:34  Linpop\desktop\client1.c
     目录           0  2011-09-09 21:50  Linpop\desktop\file\
     文件        4525  2011-09-04 08:41  Linpop\desktop\file\file_server.c
     文件           0  2011-09-04 08:41  Linpop\desktop\file\file_server.c~
     文件         673  2011-04-05 19:24  Linpop\desktop\file_creat.c
     文件         166  2011-09-02 10:28  Linpop\desktop\host.c
     文件          72  2011-09-08 08:48  Linpop\desktop\makefile
     目录           0  2011-09-09 21:50  Linpop\desktop\ok\
     文件       11251  2011-09-11 14:46  Linpop\desktop\ok\client
     文件        9491  2011-09-11 16:12  Linpop\desktop\ok\re_client.c
     文件       10597  2011-09-10 18:45  Linpop\desktop\ok\re_client.c~
     文件        7636  2011-09-11 15:45  Linpop\desktop\ok\re_server.c
     文件       14478  2011-09-11 15:25  Linpop\desktop\ok\server
     文件        6524  2011-09-10 15:34  Linpop\desktop\ok\test
     文件         734  2011-09-10 15:31  Linpop\desktop\ok\test.c
     文件         108  2011-09-10 15:34  Linpop\desktop\ok\testq.c
     文件        4960  2011-09-07 08:42  Linpop\desktop\server.c
     文件        1796  2011-09-01 19:30  Linpop\desktop\talk.c
     文件        1647  2011-09-02 13:57  Linpop\desktop\tcp_server_fork.c
     文件          97  2011-09-03 08:52  Linpop\desktop\test.c
     文件         928  2011-09-03 08:55  Linpop\desktop\thread.c
     目录           0  2011-09-09 21:50  Linpop\desktop\trail\
     文件        4003  2011-09-09 10:12  Linpop\desktop\trail\F_client.c
     文件           0  2011-09-10 08:43  Linpop\desktop\trail\abd.c
     文件       16435  2011-09-08 19:09  Linpop\desktop\trail\ccb.c
............此处省略48个文件信息

评论

共有 条评论

相关资源