[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Socket funktioner i kernel space



In article <sslug@sslug> you wrote:
> Jeg er ved at skrive en device driver, som skal benytte sockets. Hvilke
> sockets funktioner kan man benytte?

Prøv at få fat i noget litteratur om sockets programmering
da det er et større emne.

Men af programmer du kan se på er:

 read(2), write(2)
 select(2), accept(2),   connect(2),  listen(2),  socket(2),  
 getsockname(2) mv.

og også rare at have:

 gethostbyname(3), getservent(3)
 htonl(3),  htons(3),  ntohl(3), ntohs(3)

(2) henviser til manualsiderne, dvs. "man 2 select"

Der er sikkert flere kald som jeg ikke lige kan huske.


Prøv evt at hente kildetekst til nogle af de "små" httpd servere og 
brug dem som eksempel på hvordan tingene kan gøres.

-- 
mvh Frank Damgaard  | http://home3.inet.tele.dk/frda/



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *