30 lines
494 B
Plaintext
30 lines
494 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
include::../ask-yourself.adoc[]
|
||
|
|
||
|
include::../recommended.adoc[]
|
||
|
|
||
|
== Sensitive Code Example
|
||
|
|
||
|
----
|
||
|
Private Sub cmdConnect_Click()
|
||
|
sockMain.RemoteHost = "192.168.12.42"
|
||
|
sockMain.RemotePort = "80"
|
||
|
sockMain.Connect
|
||
|
End Sub
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
Private Sub cmdConnect_Click()
|
||
|
sockMain.RemoteHost = txtHost.Text
|
||
|
sockMain.RemotePort = txtPort.Text
|
||
|
sockMain.Connect
|
||
|
End Sub
|
||
|
----
|
||
|
|
||
|
include::../exceptions.adoc[]
|
||
|
|
||
|
include::../see.adoc[]
|