Socket
duapple
这个作者很懒,什么都没留下…
展开
-
Linux socket 进程间通信
Socket进程间通信服务端#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <sys/socket.h>#include <sys/types.h>#include <sys/un.h>#include <errno.h>#include <stddef.h>原创 2021-07-04 03:28:29 · 1198 阅读 · 0 评论 -
Golang socket编程
用Go语言实现unix socket通信。这里用Go语言写服务端,C语言写客户端。Gopackage mainimport ( "net" "os" "os/signal" "syscall" logs "github.com/sirupsen/logrus")func main() { os.Remove("/tmp/sock") conn, err := net.ResolveUnixAddr("unix", "/tmp/sock") if err != nil {原创 2022-04-13 13:41:38 · 1049 阅读 · 0 评论