#ifndef NETWORK_H
#define NETWORK_H

#include "node_gl.h"

class Receiver {
 private:
  uint next_frame_to_receive;
  pthread_t thread_handle;
  NodeGL *gl;
  int listen_socket;
  int input_socket;  
  char bg;

 public:
  Receiver( NodeGL *s_node_gl, char s_bg );
  void loop( void );
};

class OutSender {
 private:
  uint next_frame_to_transmit;
  pthread_t thread_handle;
  NodeGL *gl;
  int output_socket;
  char *dst_ip;

 public:
  OutSender( NodeGL *s_node_gl, char *s_dst_ip );
  void loop( void );
};

#endif /* NETWORK_H */
