OSSP CVS Repository

ossp - Check-in [756]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 756
Date: 2001-Aug-23 14:39:26 (local)
2001-Aug-23 12:39:26 (UTC)
User:simons
Branch:
Comment: Added connect() to amp_engine_t.
Tickets:
Inspections:
Files:
ossp-pkg/srpc/libamp/amp.h      1.2 -> 1.3     14 inserted, 10 deleted

ossp-pkg/srpc/libamp/amp.h 1.2 -> 1.3

--- 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);
 

CVSTrac 2.0.1