随笔分类 -  Socket

摘要:用Go语言实现unix socket通信。这里用Go语言写服务端,C语言写客户端。 Go package main import ( "net" "os" "os/signal" "syscall" logs "github.com/sirupsen/logrus" ) func main() { 阅读全文
posted @ 2022-04-13 13:41 duapple 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Socket进程间通信 服务端 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/types.h> #inclu 阅读全文
posted @ 2021-07-04 03:28 duapple 阅读(5) 评论(0) 推荐(0) 编辑