VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
vc_client_netdown.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <errno.h>
#include <limits.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <ifaddrs.h>
#include "advioctl.h"
#include "advtype.h"
#include "vcom_proto.h"
#include "vcom_proto_cmd.h"
#include "vcom.h"
#include "vc_client_pause.h"
#include "vc_client_netup.h"
#include "advlist.h"

Data Structures

struct  _client_info
 

Macros

#define ADV_THIS   (&vc_netdown_ops)
 

Functions

int _create_sklist (struct list_head *sklist, char *addr, char *port, struct ifaddrs *ifa)
 
int vc_connect (struct vc_attr *attr)
 
struct vc_opsvc_netdown_close (struct vc_attr *attr)
 
struct vc_opsvc_netdown_open (struct vc_attr *attr)
 
struct vc_opsvc_netdown_init (struct vc_attr *attr)
 
char * vc_netdown_name (void)
 

Variables

struct vc_ops vc_netdown_ops
 

Macro Definition Documentation

◆ ADV_THIS

#define ADV_THIS   (&vc_netdown_ops)

Function Documentation

◆ _create_sklist()

int _create_sklist ( struct list_head * sklist,
char * addr,
char * port,
struct ifaddrs * ifa )

◆ vc_connect()

int vc_connect ( struct vc_attr * attr)

◆ vc_netdown_close()

struct vc_ops * vc_netdown_close ( struct vc_attr * attr)

◆ vc_netdown_init()

struct vc_ops * vc_netdown_init ( struct vc_attr * attr)

◆ vc_netdown_name()

char * vc_netdown_name ( void )

◆ vc_netdown_open()

struct vc_ops * vc_netdown_open ( struct vc_attr * attr)

Variable Documentation

◆ vc_netdown_ops

struct vc_ops vc_netdown_ops
Initial value:
= {
.open = vc_netdown_open,
}
char *(* name)(void)
Definition vcom.h:71
struct vc_ops *(* init)(struct vc_attr *)
Definition vcom.h:67
struct vc_ops *(* close)(struct vc_attr *)
Definition vcom.h:62
char * vc_netdown_name(void)
Definition vc_client_netdown.c:362
struct vc_ops * vc_netdown_init(struct vc_attr *attr)
Definition vc_client_netdown.c:341
struct vc_ops * vc_netdown_open(struct vc_attr *attr)
Definition vc_client_netdown.c:285
struct vc_ops * vc_netdown_close(struct vc_attr *attr)
Definition vc_client_netdown.c:263