Sponsored Content
Full Discussion: Unix OS Installer
Operating Systems Linux Gentoo Unix OS Installer Post 302102985 by microuniz on Monday 15th of January 2007 08:18:42 PM
Old 01-15-2007
hi, currently I am using cygwin, a programme that is similiar to the linux OS.

Can anyone tell me how do I use Cygwin to write a simple TCP/IP server program in C language.

The server program can listen at TCP 8080 and send out Hello World
to any TCP client connect to the port 8080 (at client side use the command telnet IP address 8080)

I need a simple TCP/IP programme working but I hage no idea where to start out, where to code and how do I go about coding it?

Please guide me, thank you! Smilie
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Create an installer

I have a software bundle for which I want to create an installer. One of the things I am also looking at, is to be able to install this straight from a CD or any external storage device. How do I go about creating one? This is for Linux. Any advice is welcome !! -- garric (3 Replies)
Discussion started by: garric
3 Replies

2. UNIX for Dummies Questions & Answers

UNIX installer??

hi i wanna ask that is there a software available for unix to install different files... e.g. when we install a file in windows the installation wizard runs and guides us through the process... if so plz tell... and guide thnx! (5 Replies)
Discussion started by: umarbangash
5 Replies

3. Fedora

wubi installer for windows

hello.i need a soft like (wubi support ubuntu) to boot fedora or centos or freebsd.any answer ? Thank You. (2 Replies)
Discussion started by: d4rkm4nx99
2 Replies

4. Solaris

solaris installer

what is the name of the solaris installer? (for both x86 and sparc architecture) In linux it is "anaconda". (7 Replies)
Discussion started by: kingston
7 Replies

5. Solaris

OpenSolaris Installer error

Hi, Whenever i try to install OpenSolaris, I am getting the error "There was an error launching the application. Detail: Failed to fork child process (Not enough space)" I am using the image 2009.06. I have 512 mb ram and 100 gb hard drive with Red Hat and Windows Xp installed. Please... (1 Reply)
Discussion started by: krabu
1 Replies

6. Shell Programming and Scripting

Xfce installer script

Xfce desktop installer script on Ubuntu for home, office or server computers. This script installs Xfce desktop and a set of programs according to user needs starting from an Ubuntu Server base system. It's valid for netbooks, notebooks, desktop computers and servers. For more information... (1 Reply)
Discussion started by: cesar-rgon
1 Replies

7. Shell Programming and Scripting

Yet another simple script installer

Heyas Just recently i tried to apply the GNU Autotools to my project, while it was possible, it took forever to know where to create which files and what to place in each of them. Dare you making a space rather than a tab! Inspired by GNU Autotools, and overhelmed by its functionality and... (0 Replies)
Discussion started by: sea
0 Replies

8. OS X (Apple)

Installer issue

Hi, I have a little problem with an Installer. In my script I have a section that place a keyboard shortcut: #!/usr/bin/perl ################################################################################ # # Create Desktop shortcut for Swedish Menu Commands Document #... (1 Reply)
Discussion started by: peli
1 Replies
stone(1)						      General Commands Manual							  stone(1)

NAME
stone - a simple TCP/IP packet repeater SYNOPSYS
stone [-d] [-n] [-u max] [-f n] [-l] [-z SSL] st [-- st] ... OPTIONS
-d Increase the debug level. -z SSL encryption. -n IP addresses and service port numbers are shown instead of host names and service names. -u max max is integer. The program will memorize max sources simultaneously where UDP packets are sent. -f n n is integer. The program will spawn n child processes. -l Sends error messages to the syslog instead of stderr. st is one of the followings; Multiple st can be designated, separated by --. (1) host:port sport [xhost ...] (2) host:port shost:sport [xhost ...] (3) display [xhost ...] (4) proxy sport [xhost ...] (5) host:port/http request [hosts ...] (6) host:port/proxy header [hosts...] The program repeats the connection on port sport to the other machine host port port. If the machine, on which the program runs, has two or more interfaces, type (2) can be used to repeat the connection on the specified interface shost. display [xhost ...] Abbreviating notation. The program repeats the connection on display number display to the X server designated by the environment variable DISPLAY. proxy sport [xhost ...] Http Proxy. Specify the machine, on which the program runs, and port sport in the http proxy settings of your WWW browser. host:port/http request [hosts ...] Repeats packets over http request. request is the request specified in HTTP 1.0. host:port/proxy header [hosts...] host:port/proxy header [hosts...] Type (6) repeats http request with header in the top of request headers. xhost Only machines xhost can connect to the program. xhost/mask Only machines on specified networks are permitted to connect to the program. In the case of class C network 192.168.1.0, for exam- ple, use 192.168.1.0/255.255.255.0. sport/udp Repeats UDP packets instead of TCP packets. port/ssl Repeats packets with encryption. sport/ssl Repeats packets with decryption. sport/http Repeats packets over http. DESCRIPTION
Stone is a TCP/IP packet repeater in the application layer. It repeats TCP and UDP packets from inside to outside of a firewall, or from outside to inside. Stone has following features: 1. Stone supports Win32. Formerly, UNIX machines are used as firewalls, but recently WindowsNT machines are used, too. You can easily run Stone on WindowsNT and Windows95. Of course, available on Linux, FreeBSD, BSD/OS, SunOS, Solaris, HP-UX and so on. 2. Simple. Stone's source code is only 2000 lines long (written in C language), so you can minimize the risk of security holes. 3. Stone supports SSLeay. Using SSLeay developed by Eric Young, Stone can encrypt/decrypt packets. 4. Stone is a http proxy. Stone can also be a tiny http proxy. EXAMPLES
outer: a machine in the outside of the firewall inner: a machine in the inside of the firewall fwall: the firewall on which the stone is executed stone 7 outer Repeats the X protocol to the machine designated by the environmental variable DISPLAY. Run X clients under DISPLAY=inner:7 on outer. stone outer:telnet 10023 Repeats the telnet protocol to outer. Run telnet fwall 10023 on inner. stone outer:domain/udp domain/udp Repeats the DNS query to outer. Run nslookup - fwall on inner. stone outer:ntp/udp ntp/udp Repeats the NTP to outer. Run ntpdate fwall on inner. stone localhost:http 443/ssl Make WWW server that supports https. Access https://fwall/ using a WWW browser. stone localhost:telnet 10023/ssl Make telnet server that supports SSL. Run SSLtelnet -z ssl fwall 10023 on inner. stone proxy 8080 http proxy. Where fwall is a http proxy (port 8080): stone fwall:8080/http 10023 'POST http://outer:8023 HTTP/1.0' stone localhost:telnet 8023/http Run stones on inner and outer respectively. Repeats packets over http. stone fwall:8080/proxy 9080 'Proxy-Authorization: Basic c2VuZ29rdTpoaXJvYWtp' for browser that does not support proxy authorization. COPYRIGHT
All rights about this program stone are reserved by the original author, Hiroaki Sengoku. The program is free software; you can redis- tribute it and/or modify it under the terms of the GNU General Public License (GPL). NO WARRANTY
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. AUTHOR
Hiroaki Sengoku sengoku@gcd.org http://www.gcd.org/sengoku/ Version 2.0 stone(1)
All times are GMT -4. The time now is 09:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy