Skip to content

mikhailremnev/serverize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverizer

This application aims to provide TCP server to remotely access any interactive shell application.

It uses fork() to start a child process, then uses dup2(..) to link with its stdin and stdout. After that, any input from the client goes into child process and any output from child process is sent back to client.

Hence, we get very simple network-accessible services for accessing interactive shells. (and interactive shells can be easily made from normal C code using functors library).

Usage:

./serverize [-p port] [-d] command_name [command arguments]

-p port is a server port for the client connection. Default is 1234.

If -d is specified, the server is started as daemon.

About

Link stdin and stdout of the specified application to the TCP server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published