OSSP CVS Repository

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

Check-in Number: 754
Date: 2001-Aug-23 14:24:47 (local)
2001-Aug-23 12:24:47 (UTC)
User:simons
Branch:
Comment: Added a skeleton project for the amp library.
Tickets:
Inspections:
Files:
ossp-pkg/srpc/libamp/.cvsignore      added-> 1.1
ossp-pkg/srpc/libamp/Odinfile      added-> 1.1
ossp-pkg/srpc/libamp/amp.h      added-> 1.1
ossp-pkg/srpc/libamp/test.c      added-> 1.1

ossp-pkg/srpc/libamp/.cvsignore -> 1.1

*** /dev/null    Sat Nov 23 06:19:51 2024
--- -    Sat Nov 23 06:20:10 2024
***************
*** 0 ****
--- 1 ----
+ test


ossp-pkg/srpc/libamp/Odinfile -> 1.1

*** /dev/null    Sat Nov 23 06:19:51 2024
--- -    Sat Nov 23 06:20:10 2024
***************
*** 0 ****
--- 1,4 ----
+ test == test.c +cc_flags='-Wall -pedantic' :exe
+ 
+ %clean !== !<<
+     rm -f test


ossp-pkg/srpc/libamp/amp.h -> 1.1

*** /dev/null    Sat Nov 23 06:19:51 2024
--- -    Sat Nov 23 06:20:10 2024
***************
*** 0 ****
--- 1,32 ----
+ #ifndef __LIBAMP_H__
+ #define __LIBAMP_H__
+ 
+ #include <sys/types.h>
+ #include <sys/uio.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <sys/socket.h>
+ 
+ typedef struct
+     {
+     int (*listen)(int s, int backlog);
+     int (*accept)(int s, struct sockaddr *addr, socklen_t *addrlen);
+     int (*bind)(int s, const struct sockaddr *addr, socklen_t addrlen);
+     ssize_t (*read)(int d, void *buf, size_t nbytes);
+     ssize_t (*readv)(int d, const struct iovec *iov, int iovcnt);
+     ssize_t (*write)(int d, const void* buf, size_t nbytes);
+     ssize_t (*writev)(int d, const struct iovec* iov, int iovcnt);
+     }
+ amp_engine_t;
+ 
+ typedef struct
+     {
+     int          fd;
+     amp_engine_t engine;
+     }
+ amp_peer_t;
+ 
+ amp_peer_t* amp_create_peer(const char* engine, const char* peer);
+ int amp_destroy_peer(amp_peer_t* peer);
+ 
+ #endif /* !defined(__LIBAMP_H__) */


ossp-pkg/srpc/libamp/test.c -> 1.1

*** /dev/null    Sat Nov 23 06:19:51 2024
--- -    Sat Nov 23 06:20:10 2024
***************
*** 0 ****
--- 1,6 ----
+ #include "amp.h"
+ 
+ int main(int argc, char** argv)
+     {
+     return 0;
+     }

CVSTrac 2.0.1