HOw to start a connection?

Hi, I understand assignment qns are not allowed.

However, I need major help.. please teach me how to write a tcp/ip programme using C, wad are the websites that i can refer to?

wad are the codes required for it?

I have never done tcp/ip configurations before, and never learnt C before, please please help....

Go to the [thread=13774]tutorials[/thread] in our FAQ section. There are two network programming tutorials in the Advanced Programming Tutorials paragraph.

all right..thanks...

but can i post qns here again if i got any probs?

Well, legal posts are legal. Looking over your posts to date, you probably should review the rules.

I ve read the tutorials..

But it doesnt give sample codes to examples.

can anyone tell me what are the methods to use, just main method?

and can anyone tell me how to read to my own router's port? and how does it speak to other routers?

do I need to create a batch file for it?

btw I am using cygwin, coding in C.

these are vital and important to me... please help... thanks....

You obviously didn't read the same tutorials Perderabo indicated. They have code samples.

yea but its not what I needed.

btw how do i use the GCC to compile and execute the program?

thanks...

Well according to Google:

"Results ... of about 1,260,000 for gcc compile."

I'd suggest starting there.

And - you don't "execute" programs with GCC.

Cheers
ZB

oh...so how do I view the results which I have coded?

sprry but I am reely new to this.

OK, lets start with writing in English. Real English and not any l33t (if I got that right) or cyberpunk or any such thing (Rule 9).
Search the forums database for before asking questions (Rule 5).

For your compile question, I ran a search on google for "compiling programs with GCC". This is one of the top results. And there are more. Go through them.
"Executing programs in Linux" returned this as the top result.

If you face problems that a simple google search cannot answer, then by all means, please post here.

thanks alot... but may i kno where is the Forums Database? thanks again!

button No5 at the top navigation bar : "Search"

just google it: "bsd socket programming"