brlapi_sendRaw man page on YellowDog

Man page or keyword search:  
man Server   18644 pages
apropos Keyword Search (all sections)
Output format
YellowDog logo
[printable version]

Raw Mode(3)			    BrlAPI			   Raw Mode(3)

NAME
       Raw Mode - Raw Mode mechanism.

   Functions
       int brlapi_getRaw (const char *driver)
       int brlapi_leaveRaw (void)
       ssize_t brlapi_sendRaw (const void *buf, size_t size)
       ssize_t brlapi_recvRaw (void *buf, size_t size)

Detailed Description
       If the application wants to directly talk to the braille terminal, it
       should use Raw Mode. In this special mode, the driver gives the whole
       control of the terminal to it: brltty doesn't work any more.

       For this, it simply has to call brlapi_getRaw(), then brlapi_sendRaw()
       and brlapi_recvRaw(), and finally give control back thanks to
       brlapi_leaveRaw().

       Special care of the terminal should be taken, since one might
       completely trash the terminal's data, or even lock it! The application
       should always check for terminal's type thanks to brlapi_getDriverId().

Function Documentation
   int brlapi_getRaw (const char * driver)
       Switch to Raw mode

       Parameters:
	   driver Specifies the name of the driver for which the raw
	   communication will be established.

       Returns:
	   0 on success, -1 on error

   int brlapi_leaveRaw (void)
       Leave Raw mode

       Returns:
	   0 on success, -1 on error

   ssize_t brlapi_recvRaw (void * buf, size_t size)
       Get a Raw packet

       Parameters:
	   buf points on a buffer where the function will store the received
	   packet;
	   size holds the buffer size.

       Returns:
	   its size, -1 on error, or -2 on EOF

   ssize_t brlapi_sendRaw (const void * buf, size_t size)
       Send a Raw Packet

       Parameters:
	   buf points on the packet;
	   size holds the packet size.

       Returns:
	   size on success, -1 on error

Version 1.0			  26 Dec 2005			   Raw Mode(3)
[top]

List of man pages available for YellowDog

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net