NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Monitor.Server.Request Class Reference

Package Functions

 Request (int size, Socket sock)
 
void ReSize (int size)
 

Package Attributes

byte[] Buffer
 
string Command => Content != null ? Content.Split(' ')[0] : string.Empty
 
Socket Socket
 

Properties

string[] Arguments [get]
 

Private Attributes

string Content => Encoding.UTF8.GetString(Buffer)
 

Detailed Description

Definition at line 28 of file Request.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Monitor.Server.Request.Request ( int  size,
Socket  sock 
)
inlinepackage

Definition at line 30 of file Request.cs.

31  {
32  Buffer = new byte[size];
33  Socket = sock;
34  }

Member Function Documentation

void Ntp.Analyzer.Monitor.Server.Request.ReSize ( int  size)
inlinepackage

Definition at line 57 of file Request.cs.

58  {
59  var newBuffer = new byte[size];
60 
61  for (int i = 0; i < size; i++)
62  newBuffer[i] = Buffer[i];
63 
64  Buffer = newBuffer;
65  }

Member Data Documentation

byte [] Ntp.Analyzer.Monitor.Server.Request.Buffer
package

Definition at line 36 of file Request.cs.

string Ntp.Analyzer.Monitor.Server.Request.Command => Content != null ? Content.Split(' ')[0] : string.Empty
package

Definition at line 41 of file Request.cs.

string Ntp.Analyzer.Monitor.Server.Request.Content => Encoding.UTF8.GetString(Buffer)
private

Definition at line 39 of file Request.cs.

Socket Ntp.Analyzer.Monitor.Server.Request.Socket
package

Definition at line 37 of file Request.cs.

Property Documentation

string [] Ntp.Analyzer.Monitor.Server.Request.Arguments
getpackage

Definition at line 44 of file Request.cs.


The documentation for this class was generated from the following file: