HTTP client application that may schedule HTTP requests to the HTTP server application. More...
Methods | |
ClientId.Get | |
Returns the unique client ID. More... | |
Description.Get | |
Returns a textual description of the object. | |
Http.Method.Get | |
Returns the used HTTPRequest method. More... | |
Http.Method.Set | |
Configures the HTTPRequest method to be used. More... | |
Http.Session.Info.Get | |
Returns the Layer5.Http.SessionInfo from this session. More... | |
Latency.Enable | |
Enables one-way latency on the HTTP Session. More... | |
Local.Port.Get | |
Returns the TCP the HTTPClientMobile will use to send its HTTPRequest. More... | |
Local.Port.Set port | |
Configure the TCP port for the client to use. More... | |
Parent.Get | |
Returns the parent object. | |
Remote.Address.Get | |
Return the configured destination address. More... | |
Remote.Address.Set address | |
Configure the destination address. More... | |
Remote.Port.Get | |
Returns the configured destination port. More... | |
Remote.Port.Set port | |
Configure the TCP port which the client will use as destination port. More... | |
Request.Duration.Get | |
Method which will return the configured HTTP Request duration. More... | |
Request.Duration.Set requestDuration | |
Method which will configure a page to send out an HTTP Request to transmit data during a certain time. More... | |
Request.InitialTimeToWait.Get | |
Returns the initial time to wait before a scheduled Request starts. More... | |
Request.InitialTimeToWait.Set timeToWait | |
Sets the initial time to wait before really requesting a page (for a scheduled Request). More... | |
Request.RateLimit.Get | |
Method which will return the configured rate-limit of the HTTP traffic. More... | |
Request.RateLimit.Set rateLimit | |
Method which will limit the rate of the HTTP traffic to a certain amount.. More... | |
Request.Size.Get | |
Method which will return the configured requested pagesize expressed in Bytes. More... | |
Request.Size.Set requestSize | |
Method which will configure a page to send out an HTTP Request to request a certain number of Bytes. More... | |
Restart.Enable enableval | |
Let the HTTP Client try to restart the session when a connection fails. More... | |
Restart.IsEnabled | |
Method which will return whether or not the HTTP Client will restart the session when the connection fails. More... | |
ServerClientId.Get | |
This method returns the combination of the server Id ( aka ByteBlower Server Id ) and client Id. More... | |
ServerId.Get | |
Returns the unique ByteBlower Server ID. More... | |
Tcp.Prague.Enable | |
Enables TCP Prague congestion control for L4S. | |
Tcp.Prague.IsEnabled | |
Returns if TCP Prague congestion control is enabled or not. | |
TypeOfService.Get | |
Retrieves the 'Type Of Service' or 'Traffic Class' configuration of the IP layer. More... | |
TypeOfService.Set | |
Configures the 'Type Of Service' or 'Traffic Class' used at the IP layer. More... | |
HTTP client application that may schedule HTTP requests to the HTTP server application.
Using this class, you can simulate TCP (Transmission Control Protocol) traffic The TCP is simulated by a HTML request to the HTTPServer. This is the HttpClient that will perform the GET or the PUT. This request can be sent to the HttpServerObject (Layer5.Http.Server).
Layer5.Http.Client.Mobile::ClientId.Get |
Returns the unique client ID.
Each client has a unique ID so that information about the same connection can be requested on a HTTP server object. This method returns the unique ClientID for this HTTP client.
Returns:
BBhttpC800286629
Layer5.Http.Client.Mobile::Http.Method.Get |
Returns the used HTTPRequest method.
There are 2 possible values:
Returns:
GET
or in case of a PUT it will return Returns:
PUT
Layer5.Http.Client.Mobile::Http.Method.Set |
Configures the HTTPRequest method to be used.
There are 2 possible values:
<tcl_error> | bad lexical cast: When the value could not be interpreted as a valid HTTPRequestMethod |
or in case of a PUT it will return
Layer5.Http.Client.Mobile::Http.Session.Info.Get |
Returns the Layer5.Http.SessionInfo from this session.
The HttpSessionInfo contains all the information of the current session. From state until the counters of received/transmitted bytes
Returns:
<Layer5.Http.SessionInfo object>
Layer5.Http.Client.Mobile::Latency.Enable |
Layer5.Http.Client.Mobile::Local.Port.Get |
Layer5.Http.Client.Mobile::Local.Port.Set | port | ||
Configure the TCP port for the client to use.
This method will set the TCP port for the client.
port | TCP port on which the client will listen or replies and send its requests. |
ByteBlower.Exception.InvalidValue.Integer | when the value is not an Integer |
ByteBlower.Exception.InvalidConfig | when the value is not between 1 and 65535 |
Layer5.Http.Client.Mobile::Remote.Address.Get |
Layer5.Http.Client.Mobile::Remote.Address.Set | address | ||
Configure the destination address.
Method to configure the address of the HTTP server which this client will try to contact.
address | Address of the HTTP server this client will use. |
Layer5.Http.Client.Mobile::Remote.Port.Get |
Layer5.Http.Client.Mobile::Remote.Port.Set | port | ||
Configure the TCP port which the client will use as destination port.
This method is used to configure the TCP port of the server which the client will try to contact.
port | TCP port of the HTTP server which the client will try to contact. |
ByteBlower.Exception.InvalidValue.Integer | when the value is not an Integer |
ByteBlower.Exception.InvalidConfig | when the value is not between 1 and 65535 |
Configure the client to use port 80 as destination port
Layer5.Http.Client.Mobile::Request.Duration.Get |
Method which will return the configured HTTP Request duration.
A HTTP Request page will be configured to request to send data, during a certain time, on a ByteBlower HTTP server.
Get the configured a request duration 1.5 seconds
Returns:
1500000000
Layer5.Http.Client.Mobile::Request.Duration.Set | requestDuration | ||
Method which will configure a page to send out an HTTP Request to transmit data during a certain time.
A HTTP Request page will be configured to request to send data, during a certain time, on a ByteBlower HTTP server.
This will prepare a nice TCP traffic test with data transferred over the network until the requested duration has passed.
requestDuration | The duration of data traffic to send the HTTP Request for. |
<tcl_error> | bad lexical cast: When the value could not be interpreted as a valid time string |
will configure a request to transfer data during 1.5 seconds
or expressed in nano seconds
Layer5.Http.Client.Mobile::Request.InitialTimeToWait.Get |
Layer5.Http.Client.Mobile::Request.InitialTimeToWait.Set | timeToWait | ||
Sets the initial time to wait before really requesting a page (for a scheduled Request).
This can be used if you want to start different request on different timestamps.
timeToWait | Time to wait before the request will be really sent. Units are ns, but can be added. |
<tcl_error> | bad lexical cast: When the value could not be interpreted as a valid time string |
Initial Time to wait of 60 seconds
Initial Time to wait of 60 seconds expressed in nanoseconds
Initial Time to wait of 60 seconds expressed in minutes
Layer5.Http.Client.Mobile::Request.RateLimit.Get |
Layer5.Http.Client.Mobile::Request.RateLimit.Set | rateLimit | ||
Method which will limit the rate of the HTTP traffic to a certain amount..
rateLimit | The rate limit, in bytes per second. |
Setting the rate limit to 10 MBytesps
Disable rate limit
Layer5.Http.Client.Mobile::Request.Size.Get |
Method which will return the configured requested pagesize expressed in Bytes.
A HTTP Request page will be configured to request for a certain size of data on a ByteBlower HTTP server.
Getting the configured requestsize
Returns:
10000000
Layer5.Http.Client.Mobile::Request.Size.Set | requestSize | ||
Method which will configure a page to send out an HTTP Request to request a certain number of Bytes.
A HTTP Request page will be configured to request for a certain size of data on a ByteBlower HTTP server.
This will prepare a nice TCP traffic test with the number of requested Bytes transferred over the network.
requestSize | The number of Bytes to send the HTTP Request for. |
Setting the requestsize to 10000000 Bytes
Layer5.Http.Client.Mobile::Restart.Enable | enableval | ||
Let the HTTP Client try to restart the session when a connection fails.
The HTTP Client will setup a new HTTP connection when the connection is lost for some reason. Possible reasons are loss of the network connection on the device, loss of the TCP connection due to a rebooting device somewhere in the network...
To distinguish the different sessions, the ClientServerId is used as a prefix. The connection attempt number is appended to the ID
enableval | 1 to enable, 0 to disable. |
Enable the restarting behaviour
Enable TCP restart on a wireless endpoint and request all sessions created.
Layer5.Http.Client.Mobile::Restart.IsEnabled |
Method which will return whether or not the HTTP Client will restart the session when the connection fails.
Getting the configured rate limit.
Returns:
1
Layer5.Http.Client.Mobile::ServerClientId.Get |
This method returns the combination of the server Id ( aka ByteBlower Server Id ) and client Id.
This returns a combination of the ServerId and the Client Id. This combination will identify a HTTP connection. It is this combination of id's you can use to request the Layer5.Http.SessionInfo on the HTTP server (Layer5.Http.Server::Http.Session.Info.Get)
Returns:
BBhttpS72577556/BBhttpC800286629
Layer5.Http.Client.Mobile::ServerId.Get |
Returns the unique ByteBlower Server ID.
Each ByteBlower server has a unique ID. This identifier stays persistant over the lifetime of the ByteBlowerServers ( changed when rebooted ). This serverId together with the clientId identifies a HTTPConnection. By adding those 2 id's together it is unlikely that 2 HTTPClientMobiles each running on a different server end up with the same connection ID.
Returns:
BBhttpS72577556
Layer5.Http.Client.Mobile::TypeOfService.Get |
Retrieves the 'Type Of Service' or 'Traffic Class' configuration of the IP layer.
Both IP headers reserve space to for an the expected quality of service(QOS) field. In IPv4 this field is called the 'Type Of Service'. IPv6 uses the term 'Traffic Class'. Despite naming, they are both 8 bits wide. For ease of use, the getter is generic, it is used for both IPv4 and IPv6 layers.
This method returns a number from 0 up to 255. This value represents the the byte used at the IP layer.
Layer5.Http.Client.Mobile::TypeOfService.Set |
Configures the 'Type Of Service' or 'Traffic Class' used at the IP layer.
Both IP headers reserve space to specify the expected quality of service(QOS). IPv4 calls this field the 'Type Of Service'. In IPv6 one uses the term 'Traffic Class'. Despite naming, they are both 8 bits wide. For ease of use, the method is generic, it is used for both IPv4 and IPv6 layers. The implementaion will configure the proper header.
The input accepts integers from 0 up to 255. This value will be directly used in byte-sized field at the IP layer. No additional coding is performed.
This method can be called solely during the configuration phase,thus before the parent ByteBlower port is started. Invoking the method at other moments will result in error.