#include <nanomsg/nn.h>
#include <nanomsg/pair.h>
#include <nanomsg/pubsub.h>
#include <nanomsg/inproc.h>
#include <cstring>
#include <iostream>
#include <cstdlib>
#include <unistd.h>
Go to the source code of this file.
      
        
          | #define SOCKET_ADDRESS   "inproc://test" | 
      
 
 
  
  | 
        
          | static int test_bind | ( | int | sock, |  
          |  |  | const char * | address |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static void test_close | ( | int | sock | ) |  |  | static | 
 
 
  
  | 
        
          | static int test_connect | ( | int | sock, |  
          |  |  | const char * | address |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static void test_recv | ( | int | sock, |  
          |  |  | const char * | data |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static void test_send | ( | int | sock, |  
          |  |  | const char * | data |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static int test_socket | ( | int | family, |  
          |  |  | int | protocol |  
          |  | ) |  |  |  | static |