Mario Bambagini / ssWi

Dependents:   rover_car rover_pc supervisor watering_unit ... more

Embed: (wiki syntax)

« Back to documentation index

ssWiSocket Class Reference

Socket to communciate through ssWi. More...

#include <ssWiSocket.hpp>

Public Member Functions

PortValue read ()
 read the last value read through the network on such socket
void write (PortValue value)
 write a new value to be sent through the socket

Static Public Member Functions

static ssWiSocketcreateSocket (PortID id)
 create a new socket

Detailed Description

Socket to communciate through ssWi.

It is not possible to instanciate directly a ssWiSocket, use the static method createSocket

Definition at line 19 of file ssWiSocket.hpp.


Member Function Documentation

ssWiSocket * createSocket ( PortID  id ) [static]

create a new socket

If the network is not inizialized yet, the method returns false

Parameters:
idport identifier to connect the socket with
Returns:
the created socket

Definition at line 24 of file ssWiSocket.cpp.

PortValue read (  )

read the last value read through the network on such socket

Returns:
the read value

Definition at line 16 of file ssWiSocket.cpp.

void write ( PortValue  value )

write a new value to be sent through the socket

Parameters:
valuevalue to be sent

Definition at line 20 of file ssWiSocket.cpp.