Linus下GTK socket编程源代码.docxVIP

  • 3
  • 0
  • 约2.98万字
  • 约 23页
  • 2017-07-04 发布于湖北
  • 举报
Linus下GTK socket编程源代码

//这是服务端的代码也就是server.c文件中的代码#include stdio.h #include stdlib.h #include gtk/gtk.h #include string.h #include sys/types.h #include sys/socket.h #include netinet/in.h #include unistd.h #include arpa/inet.h #include pthread.h#include mysql.h gint sockfd,connfd; struct sockaddr_in server; struct sockaddr_in client; socklen_t addrlen;gint con[10]; int c=0; gchar buf[1024]; gchar get_buf[1024]; gboolean isconnected = FALSE; static GtkWidget *text;static GtkWidget *text_ip;static GtkTextBuffer *buffer;static GtkTextBuffer *buffer_his;static GtkTextBuffer *buffer_ip;static GtkTextBuffer *buffer_check;s

文档评论(0)

1亿VIP精品文档

相关文档