Browse Source

Fix Network typo, don't build pseudotarget

master
Macoy Madson 2 years ago
parent
commit
a96ee5f3e8
2 changed files with 6 additions and 5 deletions
  1. +1
    -1
      Jamfile
  2. +5
    -4
      network/network.hpp

+ 1
- 1
Jamfile View File

@@ -3,7 +3,7 @@ SubDir . libs base2.0 ;

SubDirC++Flags $(ALLLIBSC++FLAGS) ;

Main Base20Pseudotarget : pseudotarget.cpp ;
# Main Base20Pseudotarget : pseudotarget.cpp ; # Use when building standalone

LinkLibraries Base20Pseudotarget : libBase20 ;



+ 5
- 4
network/network.hpp View File

@@ -1,5 +1,6 @@
#ifndef NETWORK_HPP
#define NETWORK_HPP
#define NETWORK_HPP
#include <string>
/* Abstraction layer for networking modules
* For now I am going to implement the bare minimum (UDP only)*/
/* udpConnection notes
@@ -8,17 +9,17 @@
class udpConnection
{
private:
public:
//This connection will listen to the requested port; this is also needed to send
bool bind(unsigned int);
//Messages from this connection will be sent to the requested IP address & port
void connect(const std::string&, unsigned int);
//Sends data to the connected address through the bound port
bool send(const std::string&);
//Returns a string from the bound port; note that this will not
//ignore messages from other connections
std::string receive(
std::string receive();
};
#endif

Loading…
Cancel
Save