Lines Matching defs:vclient
184 vclient_close (struct vtysh_client *vclient)
186 if (vclient->fd > 0)
187 close (vclient->fd);
188 vclient->fd = -1;
197 vtysh_client_config (struct vtysh_client *vclient, char *line)
209 if (vclient->fd < 0)
212 ret = write (vclient->fd, line, strlen (line) + 1);
215 vclient_close (vclient);
236 nbytes = read (vclient->fd, pbuf, readln);
250 vclient_close (vclient);
295 vtysh_client_execute (struct vtysh_client *vclient, char *line, FILE *fp)
302 if (vclient->fd < 0)
305 ret = write (vclient->fd, line, strlen (line) + 1);
308 vclient_close (vclient);
314 nbytes = read (vclient->fd, buf, sizeof(buf)-1);
318 vclient_close (vclient);
1490 vtysh_connect (struct vtysh_client *vclient, char *path)
1499 memset (vclient, 0, sizeof (struct vtysh_client));
1500 vclient->fd = -1;
1559 vclient->fd = sock;