Xref: utzoo comp.unix.questions:7633 comp.unix.wizards:9432 comp.sys.apollo:1023 Path: utzoo!attcan!uunet!yale!husc6!mit-eddie!rich From: rich@eddie.MIT.EDU (Richard Caloggero) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.sys.apollo Subject: Unix Metworking Software (bsd) Keywords: Help!!! Message-ID: <9506@eddie.MIT.EDU> Date: 16 Jun 88 18:36:45 GMT Organization: MIT EE/CS Computer Facility, Cambridge, MA Lines: 33 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@eddie.mit.edu). The circle is open, but unbroken. Merry meet, merry part, and merry meet again.