--- amp.h 2001/08/23 12:34:40 1.2
+++ amp.h 2001/08/23 12:39:26 1.3
@@ -10,18 +10,19 @@
typedef struct
{
int (*listen) (int fd, int backlog);
- int (*accept) (int fd, struct sockaddr *addr, socklen_t *addrlen);
- int (*bind) (int fd, const struct sockaddr *addr, socklen_t addrlen);
- ssize_t (*read) (int fd, void *buf, size_t nbytes);
- ssize_t (*readv) (int fd, const struct iovec *iov, int iovcnt);
+ int (*accept) (int fd, struct sockaddr* addr, socklen_t* addrlen);
+ int (*bind) (int fd, const struct sockaddr* addr, socklen_t addrlen);
+ int (*connect)(int fd, const struct sockaddr* name, socklen_t namelen);
+ ssize_t (*read) (int fd, void* buf, size_t nbytes);
+ ssize_t (*readv) (int fd, const struct iovec* iov, int iovcnt);
ssize_t (*write) (int fd, const void* buf, size_t nbytes);
ssize_t (*writev) (int fd, const struct iovec* iov, int iovcnt);
- ssize_t (*send)(int s, const void *msg, size_t len, int flags);
- ssize_t (*sendto)(int s, const void *msg, size_t len, int flags,
- const struct sockaddr *to, socklen_t tolen);
- ssize_t (*recv)(int s, void *buf, size_t len, int flags);
- ssize_t (*recvfrom)(int s, void *buf, size_t len, int flags, struct sockaddr *from,
- socklen_t *fromlen);
+ ssize_t (*send)(int s, const void* msg, size_t len, int flags);
+ ssize_t (*sendto)(int s, const void* msg, size_t len, int flags,
+ const struct sockaddr* to, socklen_t tolen);
+ ssize_t (*recv)(int s, void* buf, size_t len, int flags);
+ ssize_t (*recvfrom)(int s, void* buf, size_t len, int flags, struct sockaddr* from,
+ socklen_t* fromlen);
}
amp_engine_t;
@@ -32,6 +33,9 @@
}
amp_peer_t;
+amp_peer_t* amp_create_message_port(const char* engine, const char* peer);
+int amp_destroy_message_port(amp_peer_t* peer);
+
amp_peer_t* amp_create_peer(const char* engine, const char* peer);
int amp_destroy_peer(amp_peer_t* peer);
|