![]() |
Black Box
|
Static Public Attributes | |
static bool | isItRunning = false |
Static Private Member Functions | |
static void | Main (string[] args) |
static void | StartListening () |
Listen for client connections More... | |
static void | AcceptCallback (IAsyncResult ar) |
Handler for new connections More... | |
static void | ReceiveCallback (IAsyncResult ar) |
Handler for received messages More... | |
static bool | CheckState (IAsyncResult ar, out string err, out BBSensorObjects client) |
Checks IAsyncResult for null value More... | |
static void | CloseClient (BBSensorObjects client) |
Closes a client socket and removes it from the client list More... | |
static void | CloseAllSockets () |
Closes all client and server connections More... | |
Static Private Attributes | |
static readonly string | BBconection = ConfigurationManager.ConnectionStrings["BB_Sensor_CONNECTION"].ConnectionString |
static List< BBSensorObjects > | _sensors |
static ManualResetEvent | _connected = new ManualResetEvent(false) |
static Socket | _sensorServer = null |
Definition at line 49 of file Program.cs.
|
staticprivate |
Handler for new connections
ar |
Definition at line 126 of file Program.cs.
Referenced by BBPresenseSensor.Program.StartListening().
|
staticprivate |
Checks IAsyncResult for null value
ar | |
err | |
client |
Definition at line 240 of file Program.cs.
Referenced by BBPresenseSensor.Program.ReceiveCallback().
|
staticprivate |
Closes all client and server connections
Definition at line 298 of file Program.cs.
Referenced by BBPresenseSensor.Program.Main().
|
staticprivate |
Closes a client socket and removes it from the client list
client |
Definition at line 274 of file Program.cs.
Referenced by BBPresenseSensor.Program.AcceptCallback(), and BBPresenseSensor.Program.ReceiveCallback().
|
staticprivate |
Definition at line 73 of file Program.cs.
|
staticprivate |
Handler for received messages
ar |
Definition at line 169 of file Program.cs.
Referenced by BBPresenseSensor.Program.AcceptCallback().
|
staticprivate |
Listen for client connections
Definition at line 91 of file Program.cs.
Referenced by BBPresenseSensor.Program.Main().
|
staticprivate |
Definition at line 60 of file Program.cs.
Referenced by BBPresenseSensor.Program.AcceptCallback(), and BBPresenseSensor.Program.StartListening().
|
staticprivate |
Definition at line 57 of file Program.cs.
Referenced by BBPresenseSensor.Program.AcceptCallback(), BBPresenseSensor.Program.CloseAllSockets(), BBPresenseSensor.Program.CloseClient(), and BBPresenseSensor.Program.Main().
|
staticprivate |
Definition at line 67 of file Program.cs.
Referenced by BBPresenseSensor.Program.AcceptCallback(), BBPresenseSensor.Program.CloseAllSockets(), and BBPresenseSensor.Program.StartListening().
|
staticprivate |
Definition at line 54 of file Program.cs.
Referenced by BBPresenseSensor.Program.Main().
|
static |
Definition at line 64 of file Program.cs.