tcp/udp client+server briefly #connect()UDP

(Note no unix-domain sockets covered here.)

As elaborated in http://bigblog.tanbin.com/2010/12/socket-bind-listen-accept.html

TCP server is socket()-bind-listen-accept
TCP client is socket()-connect

UDP server is socket()-bind
UDP client is socket()-bind { optional }

(UDP both sides similar. See the nice diagram and sample code in http://www.tenouk.com/Module41a.html)

However, after the set-up, to move the data, UDP supports several choices.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s