unix_socket.h

来自「SDP文件解析代码」· C头文件 代码 · 共 37 行

H
37
字号
/* *       CMMB Demuxer Code for Stimi Module * ================================================================== *        Version:  1.0 *        Created:  2007年09月08日 xx时xx分xx秒 CST *       Compiler:  gcc *         Author:  kf701 (linux), kf701.ye AT gmail.com *        Company:  CodeRepertory *      CopyRight:  Copyright (c) 2007 kf701 *        SVNinfo:  $Id: unix_socket.h 105 2007-11-10 10:30:30Z kf701 $ * ================================================================== */#ifndef _UNIX_SOCKET_H_#define _UNIX_SOCKET_H_#include <stdint.h>#include <stdbool.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <netdb.h>void setnonblocking(int fd);/* unix socket */int unix_socket_new(void);void unix_socket_free(int sockfd);int32_t unix_socket_send(int sockfd , const char *to_path, const char *data, uint32_t size);int unix_socket_new_listen(const char *unix_path);typedef void(*un_data_func)(uint8_t*, int);void unix_socket_server( const char *unix_path, uint32_t psize, un_data_func func);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?