
/**
 * `pipe.h'
 *
 * copyright (c) 2014 - joseph werle <joseph.werle@gmail.com>
 */

#ifndef GOSSIP_PIPE_H
#define GOSSIP_PIPE_H

#import "common.h"
#import "socket.h"

@interface GossipPipe : GossipSocket

  /**
   * Push a string message to pipe
   */

  - (int) push: (char *) message;

  /**
   * Push a message with size to pipe
   */

  - (int) push: (void *) message
         size: (size_t) size;

  - (id) pull: (GossipSocketReceiveBlock) block;

@end

#endif
