diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-07-09 20:07:17 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-07-09 20:07:17 +0300 |
commit | ff364ceb8a6c92c7da630c4bc408e888ac3d9266 (patch) | |
tree | eb3e87b8fbdf2756cfedb4c134a08bc4745af807 /accel-dp/sock.h | |
parent | 81df5d567b747b2af12a1c2fa2a330899b22821b (diff) | |
download | accel-ppp-ff364ceb8a6c92c7da630c4bc408e888ac3d9266.tar.gz accel-ppp-ff364ceb8a6c92c7da630c4bc408e888ac3d9266.zip |
removed accel-dp related files
accel-dp will be continued in separated branch
Diffstat (limited to 'accel-dp/sock.h')
-rw-r--r-- | accel-dp/sock.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/accel-dp/sock.h b/accel-dp/sock.h deleted file mode 100644 index 0bff811d..00000000 --- a/accel-dp/sock.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef __SOCK_H -#define __SOCK_H - -#include "event.h" - -#define SOCK_BUF_SIZE 1024 - -#define PF_PPP 255 - -struct sock; - -struct proto_ops { - int (*socket)(struct sock *sk, int type, int proto); - int (*bind)(struct sock *sk, const struct sockaddr *addr, socklen_t addrlen); - int (*listen)(struct sock *sk, int backlog); - int (*connect)(struct sock *sk, const struct sockaddr *addr, socklen_t addrlen); - int (*recv)(struct sock *sk, size_t len, int flags, socklen_t addrlen); - int (*send)(struct sock *sk, void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t addrlen); - int (*ioctl)(struct sock *sk, unsigned long request, void *arg); - void (*close)(struct sock *sk); -}; - -struct msg_result; - -struct sock { - struct event_handler hnd; - void *priv; - struct msg_result *res; - const struct proto_ops *ops; -}; - -int sock_errno(struct sock *sk, int err); - -int sock_no_listen(struct sock *sk, int backlog); -int sock_no_connect(struct sock *sk, const struct sockaddr *addr, socklen_t addrlen); -int sock_no_ioctl(struct sock *sk, unsigned long request, void *arg); - -void sock_register_proto(int domain, int type, int proto, const struct proto_ops *ops); - -#endif |