473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

socket programming in C

Is this group the correct place to ask this question?

Since no-one has answered me as yet I will post it here anyway.
= = = = == = ==== = = =====

I'm trying to program sockets in C, very trivial usage.

Using lcc-win32:
I get some compilation error about #include being to deeply nested.

Using dev-c++:
I get linker errors for some commands.

I suspect that my lack of knowledge as to what header files and what to
put in the linker is the cause of my grief.
The code is straightforward. {socket(), connect(), and suchlike} &
{socket(), bind(), listen(), accept() and suchlike} that I found on two
tutorials.

Where to go? I've wasted quite a lot of time.

Thanks, Matt

Jan 5 '06 #1
6 2137
ballpointpenthief a écrit :
Is this group the correct place to ask this question?

Since no-one has answered me as yet I will post it here anyway.
= = = = == = ==== = = =====

I'm trying to program sockets in C, very trivial usage.

Using lcc-win32:
I get some compilation error about #include being to deeply nested.

Using dev-c++:
I get linker errors for some commands.

I suspect that my lack of knowledge as to what header files and what to
put in the linker is the cause of my grief.
The code is straightforward. {socket(), connect(), and suchlike} &
{socket(), bind(), listen(), accept() and suchlike} that I found on two
tutorials.

Where to go? I've wasted quite a lot of time.

Thanks, Matt


Hi

The first thing to do is read the documentation... isn't it?

Download from the lcc-win32 site:
http://www.q-software-solutions.de/pub/tutorial.pdf
and read the Network Programming part, beginning with
section 4.7: Client/Server programming using sockets.

When you understand that, you can go further. Since lcc-win32
is not on topic here (this group is about the C language)
pose any further questions in the newsgroup
comp.compilers.lcc

jacob
Jan 5 '06 #2
"ballpointpenthief" <Ma*************@gmail.com> writes:
Is this group the correct place to ask this question?
No.
Since no-one has answered me as yet I will post it here anyway.
= = = = == = ==== = = =====

I'm trying to program sockets in C, very trivial usage.

Using lcc-win32:
I get some compilation error about #include being to deeply nested.

Using dev-c++:
I get linker errors for some commands.


Standard C has no support for sockets; they're supported (if at all)
through add-on libraries. Since both implementations you mention are
Windows-specific (I know lcc-win32 is; I *think* dev-c++ is), you
might try comp.os.ms-windows.programmer.win32. Or, as jacob
mentioned, there's a comp.compilers.lcc group where general questions
about using lcc-win32 seem to be considered topical.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jan 5 '06 #3
ballpointpenthief wrote:

Is this group the correct place to ask this question?

Since no-one has answered me as yet I will post it here anyway.
= = = = == = ==== = = =====

I'm trying to program sockets in C, very trivial usage.

Using lcc-win32:
I get some compilation error about #include being to deeply nested.

Using dev-c++:
I get linker errors for some commands.


If you had posted it here you would have been told it was
off-topic. At any rate, try a group that deals with your system,
or comp.compilers.lcc (for the lcc operation)

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Jan 6 '06 #4
jacob navia wrote:
ballpointpenthief a écrit :
Is this group the correct place to ask this question?

Since no-one has answered me as yet I will post it here
anyway. = = = = == = ==== = = =====
.... snip ...
The first thing to do is read the documentation... isn't it?

Download from the lcc-win32 site:
http://www.q-software-solutions.de/pub/tutorial.pdf and read the
Network Programming part, beginning with section 4.7:
Client/Server programming using sockets.

When you understand that, you can go further. Since lcc-win32 is
not on topic here (this group is about the C language) pose any
further questions in the newsgroup comp.compilers.lcc


Well done Jacob. This should bring no topicality complaints.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Jan 6 '06 #5
"Chuck F. " <cb********@yahoo.com> wrote:
jacob navia wrote:
Download from the lcc-win32 site:
http://www.q-software-solutions.de/pub/tutorial.pdf and read the
Network Programming part, beginning with section 4.7:
Client/Server programming using sockets.

When you understand that, you can go further. Since lcc-win32 is
not on topic here (this group is about the C language) pose any
further questions in the newsgroup comp.compilers.lcc


Well done Jacob. This should bring no topicality complaints.


Right. I know I've called Jacob various things in the past, but this,
Jacob, was one I can quite agree with.

Richard
Jan 6 '06 #6
In article <43***************@news.xs4all.nl>,
Richard Bos <rl*@hoekstra-uitgeverij.nl> wrote:
"Chuck F. " <cb********@yahoo.com> wrote:
jacob navia wrote:
> Download from the lcc-win32 site:
> http://www.q-software-solutions.de/pub/tutorial.pdf and read the
> Network Programming part, beginning with section 4.7:
> Client/Server programming using sockets.
>
> When you understand that, you can go further. Since lcc-win32 is
> not on topic here (this group is about the C language) pose any
> further questions in the newsgroup comp.compilers.lcc


Well done Jacob. This should bring no topicality complaints.


Right. I know I've called Jacob various things in the past, but this,
Jacob, was one I can quite agree with.


Good doggie, good doggie.

I'll bet he is soooooooo thrilled.

Jan 6 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: pyguy2 | last post by:
Issues of socket programming can be wierd, so I'm looking for some comments. In my python books I find exclusive use of socket.close(). From my other readings, I know about a "partial close...
5
by: John Sheppard | last post by:
Hi all, I am not sure that I am posting this in the right group but here it goes anyway. I am new to socket programming and I have been searching on the internet to the questions I am about to pose...
1
by: John Sheppard | last post by:
Thanks to everyone that responded to my previous Socket Programming question. Now I have run into some behavior that I don't quite understand. Programming environment. VS.NET 2003, C#, Windows...
5
by: mscirri | last post by:
The code below is what I am using to asynchronously get data from a PocketPC device. The data comes in fine in blocks of 1024 bytes but even when I send no data from the PocketPC constant blocks of...
2
by: djc | last post by:
I read a network programming book (based on framework 1.1) which indicated that you should 'never' use the RecieveTimeout or the SendTimeout 'socket options' on TCP sockets or you may loose data. I...
10
by: Uma - Chellasoft | last post by:
Hai, I am new to VB.Net programming, directly doing socket programming. In C, I will be able to map the message arrived in a socket directly to a structure. Is this possible in VB.Net. Can...
11
by: atlaste | last post by:
Hi, In an attempt to create a full-blown webcrawler I've found myself writing a wrapper around the Socket class in an attempt to make it completely async, supporting timeouts and some scheduling...
0
by: shonen | last post by:
I'm currently attempting to connect to a shoutcast server pull down the information from here and then I'll parse it. I got this working with the httplib, which was great, the problem is I want...
8
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In...
3
by: Stuart | last post by:
I am in the process of teaching myself socket programming. I am "playing around" with some simple echo server-client programs for m the book TCP/IP Sockets in C. The Server program is: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.