Summary
The server and client presented in this tutorial are simple,
but they show everything essential to writing TCP sockets
applications. If the data transmitted is more complicated, or the
interaction between peers (client and server) is more sophisticated
in your application, that is just a matter of additional
application programming. The data exchanged will still follow the
same pattern of connect() and bind(),
then send() and recv().
One thing this tutorial did not get to, except in brief
summary at the start, is usage of UDP sockets. TCP is more
common, but it is important to also understand UDP sockets as an
option for your application. Part 2 of this tutorial series looks
at UDP, as well as implementing sockets applications in Python,
and some other intermediate topics.
6 of 8 |
Previous |
Next
Comments
Back to top
Help: Update or add to My dW interests
What's this?
This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.
And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.
View your My developerWorks profile
Return from help
static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Linux
ArticleID=133074
TutorialTitle=Programming Linux sockets, Part 1: Using TCP/IP
publish-date=10282003
author1-email=mertz@gnosis.cx
author1-email-cc=