summaryrefslogtreecommitdiff
path: root/src/ghdlserver/ghdlserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ghdlserver/ghdlserver.h')
-rw-r--r--src/ghdlserver/ghdlserver.h36
1 files changed, 5 insertions, 31 deletions
diff --git a/src/ghdlserver/ghdlserver.h b/src/ghdlserver/ghdlserver.h
index ad82385..9dc8afc 100644
--- a/src/ghdlserver/ghdlserver.h
+++ b/src/ghdlserver/ghdlserver.h
@@ -1,3 +1,4 @@
+/* 18.Mar.2017 - RM - Cleaned up.*/
#include <stdlib.h>
#include <stdint.h>
@@ -8,7 +9,6 @@
#include <netinet/in.h>
#include <netdb.h>
-
// Should be enough..
#define MAX_BUF_SIZE 4096
@@ -18,42 +18,16 @@
//threads talking to the TB?
#define DEFAULT_MAX_CONNECTIONS 65535
-
-
-
int DEFAULT_SERVER_PORT;
-//Payload Handling
-int extract_payload(char* receive_buffer,char* payload, int max_n);
-//void print_payload(FILE* log_file,char* send_buffer, int wlength, int nwords);
-//void pack_value(char* payload,int wlength,int offset, char* port_value);
-//void unpack_value(char* payload,int wlength,int offset, char* port_value);
-
-
-//Create Server to listen for message
-int create_server(int port_number, int max_connections);
-
-
-int connect_to_client(int server_fd);
-
-int can_read_from_socket(int socket_id);
-
-int can_write_to_socket(int socket_id);
-
-int receive_string(int n, char* buffer);
-
-void send_packet_and_wait_for_response(char* buffer, int send_length, char* server_host_name, int server_port_number);
-
-void set_non_blocking(int sock_id);
-void Data_Send(int sockid);
-
-//Vhpi Function
-void Vhpi_Initialize(int sock_port);
+//Vhpi Functions.
+void Vhpi_Initialize(int sock_port);
void Vhpi_Close();
+void Vhpi_Exit();
void Vhpi_Listen();
void Vhpi_Send();
void Vhpi_Set_Port_Value(char* reg_name, char* reg_value, int port_width);
void Vhpi_Get_Port_Value(char* reg_name, char* reg_value, int port_width);
-void Vhpi_Log(char* message_string);
+