OpenCores
URL https://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk

Subversion Repositories adv_debug_sys

[/] [adv_debug_sys/] [trunk/] [Software/] [adv_jtag_bridge/] [jsp_server.c] - Diff between revs 45 and 51

Show entire file | Details | Blame | View Log

Rev 45 Rev 51
Line 28... Line 28...
#include <arpa/inet.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <netdb.h>
#include <string.h>
#include <string.h>
#include <pthread.h>
#include <pthread.h>
#include <errno.h>
#include <errno.h>
 
#include <netinet/in.h>
 
#include <unistd.h>
 
 
#include "dbg_api.h"
#include "dbg_api.h"
#include "hardware_monitor.h"
#include "hardware_monitor.h"
#include "errcodes.h"
#include "errcodes.h"
 
 
Line 228... Line 230...
void *jsp_server(void *arg)
void *jsp_server(void *arg)
{
{
  struct sockaddr_storage their_addr;
  struct sockaddr_storage their_addr;
  struct timeval tv, *tvp;
  struct timeval tv, *tvp;
  fd_set  readset;
  fd_set  readset;
  int addr_size;
  socklen_t addr_size;
  int nfds, flags;
  int nfds, flags;
  int ret;
  int ret;
  char cmd;
  char cmd;
 
 
  fprintf(stderr, "JSP server thread running!\n");
  fprintf(stderr, "JSP server thread running!\n");
Line 499... Line 501...
}
}
 
 
 
 
void jsp_hardware_transact(void)
void jsp_hardware_transact(void)
{
{
  int bytes_to_send;
  unsigned int bytes_to_send;
  int bytes_received = 8;  // can receive up to 8 bytes
  unsigned int bytes_received = 8;  // can receive up to 8 bytes
  char sendbuf[8];
  unsigned char sendbuf[8];
  char rcvbuf[8];
  unsigned char rcvbuf[8];
  int i,j;
  int i,j;
  int ret;
  int ret;
 
 
  debug("JSP about to transact; Tohw buf size now %i, fromhw buf size %i\n", jsp_tohw_count, jsp_fromhw_count);
  debug("JSP about to transact; Tohw buf size now %i, fromhw buf size %i\n", jsp_tohw_count, jsp_fromhw_count);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.