2014 年文章归档
共 3 篇文章
c服务端程序
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <strings.h> #include <ctype.h> #include <sys/socket.h> #include <arpa/inet.h> #define MAX_LINE 4096 #define PORT 20120 int main(void) { struct sockaddr_in sin; struct sockaddr_in cin; int l_fd, c_fd; socklen_t len; char buf[MAX_LIN…
2014-12-30 14:17 · c · C · Socket
mysql proxy代码记录
1、mysqld_proxy_plugin_init 2、mysqld_proxy_plugins_connection 3、con_msg_handle 4、CON_STATE_READ_QUERY 5、CON_STATE_READ_QUERY_RESULT 6、CON_STATE_SEND_QUERY 7、CON_STATE_SEND_QUERY_RESULT
2014-02-24 18:46 · mysql