add broadcast support
This commit is contained in:
@ -5,13 +5,12 @@ struct termios toptions;
|
||||
void sWrite(int port, char string[], size_t length)
|
||||
{
|
||||
if(port != -1) write(port, string, length);
|
||||
else for( size_t j = 0; j < length; j++ )std::cout<<string[j];
|
||||
|
||||
}
|
||||
|
||||
void sWrite(int port, const char string[], size_t length)
|
||||
{
|
||||
if(port != -1) write(port, string, length);
|
||||
else for( size_t j = 0; j < length; j++ )std::cout<<string[j];
|
||||
}
|
||||
|
||||
ssize_t sRead(int port, void *buf, size_t count)
|
||||
|
Reference in New Issue
Block a user