随笔分类 - Socket
摘要:用Go语言实现unix socket通信。这里用Go语言写服务端,C语言写客户端。 Go package main import ( "net" "os" "os/signal" "syscall" logs "github.com/sirupsen/logrus" ) func main() {
阅读全文
摘要:Socket进程间通信 服务端 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/types.h> #inclu
阅读全文