- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Langugae C - connecting to a server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 05:26 AM
01-26-2009 05:26 AM
Langugae C - connecting to a server
I'm learning C and was reading several tutorials but they are useless.
I need to learn how to build a simple program which will connect to a Linux server.
That's it.
Please advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 05:53 AM
01-26-2009 05:53 AM
Re: Langugae C - connecting to a server
What type of connection. FTP, SFTP, SSH. The connection type matters.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 05:55 AM
01-26-2009 05:55 AM
Re: Langugae C - connecting to a server
Then Google is your friend. There's a number of good examples of C socket programs on Linux using the 'gcc' compiler. Google "C socket example" to find:
http://www.linuxhowtos.org/C_C++/socket.htm
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 06:59 AM
01-26-2009 06:59 AM
Re: Langugae C - connecting to a server
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 11:16 AM
01-26-2009 11:16 AM
Re: Langugae C - connecting to a server
I doubt that you know what you're asking,
but:
http://www.openssh.com/
> What type of connection. FTP, SFTP, SSH.
> The connection type matters.
Yes, and there are many more types than
these few.
Are you trying to write two programs which
talk to each other, or one program which
talks to an existing (standard) server? If
the latter, a program like wget might be an
example which is only moderately complex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 11:39 AM
01-26-2009 11:39 AM
Re: Langugae C - connecting to a server
How do I create a socket + connect to a port on some server.
The program doesn't have to do anything besides that at this moment.
Regards
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 11:41 AM
01-26-2009 11:41 AM
Re: Langugae C - connecting to a server
> My question though was more about how to start: How do I create a socket + connect to a port on some server.
And the link I cited above would begin to enlighten you. It is even Linux oriented --- another clause you used in this post.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 07:53 PM
01-26-2009 07:53 PM
Re: Langugae C - connecting to a server
http://beej.us/guide/bgnet/
also richard w. stevens' books "advanced programming in the unix environment" and "unix network programming".
--
ranga