Unix Metworking Software (bsd)

Richard Caloggero rich at eddie.MIT.EDU
Fri Jun 17 04:36:45 AEST 1988


     I am starting a project in which I must make use of the UNIX
_standard_ networking software.  I can't seem to understand how
routines like send(2), connect/listen(2), etc. work!  Can anyone out
there help me?!  Maybe these questions will help:
     1). If I want to write a new network service (call it
     my_service), how do I associate this _new_ service with a _port_
     number?

     2). I write a server "my_service.c" which listens to requests on
_some port (step 1 above)_. Does the program actively poll the port
for packets, or does it sleep until data of the correct type, destined
for it (by process number/uid) arrives?

     3). How do I establish a character-oriented connection between
     _this process_, and some given remote process?  I assume this
will be TCP/IP based and use sockets of type stream, but that's all
I can get -- show me the code (bsd please).

     4). How do I establish a binary (word-oriented) connection ...
I assume this is probably UDP based or something like that.


     Thanx for reading this...  Please send replies to me and I'll
post them back to these groups.



-- 
						-- Rich (rich at eddie.mit.edu).
	The circle is open, but unbroken.
	Merry meet, merry part,
	and merry meet again.



More information about the Comp.unix.wizards mailing list