-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e4dcbe0
Showing
8 changed files
with
581 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# VB6 source files (show diff + keep CRLF in zip download) | ||
|
||
*.bas working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.cls working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.ctl working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.dob working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.dsr working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.frm working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.pag working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.vbg working-tree-encoding=CP1252 text eol=crlf | ||
*.vbl working-tree-encoding=CP1252 text eol=crlf | ||
*.vbp working-tree-encoding=CP1252 text eol=crlf | ||
*.vbr working-tree-encoding=CP1252 text eol=crlf | ||
*.vbw working-tree-encoding=CP1252 text eol=crlf | ||
|
||
# Other source files (show diff + LF only in zip download) | ||
|
||
*.asm text | ||
*.asp text | ||
*.bat text | ||
*.c text | ||
*.cpp text | ||
*.dsp text | ||
*.dsw text | ||
*.h text | ||
*.idl text | ||
*.java text | ||
*.js text | ||
*.manifest text | ||
*.odl text | ||
*.php text | ||
*.php3 text | ||
*.rc text | ||
*.sln text | ||
*.sql text | ||
*.vb text | ||
*.vbs text | ||
|
||
# Binary | ||
|
||
*.res binary | ||
*.frx binary | ||
*.ctx binary | ||
*.dsx binary | ||
*.exe binary | ||
*.dll binary | ||
*.ocx binary | ||
*.cmp binary | ||
*.pdb binary | ||
*.tlb binary | ||
*.xls binary | ||
*.doc binary | ||
*.ppt binary | ||
*.xlsx binary | ||
*.docx binary | ||
*.pptx binary | ||
*.chm binary | ||
*.hlp binary | ||
*.jpg binary | ||
*.png binary | ||
*.bmp binary | ||
*.gif binary | ||
*.ico binary | ||
*.zip binary | ||
*.cab binary | ||
*.7z binary | ||
*.gz binary | ||
|
||
# Text files but keep as binary (no diff) | ||
|
||
# *.cfg text | ||
# *.conf text | ||
# *.csi text | ||
# *.css text | ||
# *.csv text | ||
# *.def text | ||
# *.htm text | ||
# *.html text | ||
# *.inf text | ||
# *.ini text | ||
# *.log text | ||
# *.reg text | ||
# *.rtf text | ||
# *.txt text | ||
# *.url text | ||
# *.xml text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.scc | ||
*.dca | ||
*.oca | ||
*.obj | ||
vb*.tmp | ||
@PSC* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
VERSION 5.00 | ||
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX" | ||
Begin VB.Form Form1 | ||
Caption = "Form1" | ||
ClientHeight = 4650 | ||
ClientLeft = 60 | ||
ClientTop = 345 | ||
ClientWidth = 7500 | ||
LinkTopic = "Form1" | ||
ScaleHeight = 4650 | ||
ScaleWidth = 7500 | ||
StartUpPosition = 3 'Windows Default | ||
Begin MSWinsockLib.Winsock Winsock1 | ||
Left = 3360 | ||
Top = 1560 | ||
_ExtentX = 741 | ||
_ExtentY = 741 | ||
_Version = 393216 | ||
End | ||
Begin VB.TextBox txtlog | ||
Height = 2415 | ||
Left = 120 | ||
Locked = -1 'True | ||
MultiLine = -1 'True | ||
ScrollBars = 2 'Vertical | ||
TabIndex = 8 | ||
Top = 2160 | ||
Width = 7215 | ||
End | ||
Begin MSWinsockLib.Winsock sckudp | ||
Left = 6240 | ||
Top = 1440 | ||
_ExtentX = 741 | ||
_ExtentY = 741 | ||
_Version = 393216 | ||
Protocol = 1 | ||
End | ||
Begin VB.CommandButton Command2 | ||
Caption = "&Send" | ||
Height = 375 | ||
Left = 120 | ||
TabIndex = 7 | ||
Top = 1560 | ||
Width = 1215 | ||
End | ||
Begin VB.TextBox txtdata | ||
Height = 285 | ||
Left = 840 | ||
TabIndex = 5 | ||
Top = 1080 | ||
Width = 6615 | ||
End | ||
Begin VB.CommandButton Command1 | ||
Caption = "&Connect" | ||
Height = 375 | ||
Left = 3360 | ||
TabIndex = 4 | ||
Top = 240 | ||
Width = 1335 | ||
End | ||
Begin VB.TextBox txtport | ||
Height = 285 | ||
Left = 840 | ||
TabIndex = 3 | ||
Top = 600 | ||
Width = 2055 | ||
End | ||
Begin VB.TextBox txtip | ||
Height = 285 | ||
Left = 840 | ||
TabIndex = 2 | ||
Top = 240 | ||
Width = 2055 | ||
End | ||
Begin VB.Label Label3 | ||
Caption = "Data:" | ||
Height = 255 | ||
Left = 120 | ||
TabIndex = 6 | ||
Top = 1080 | ||
Width = 735 | ||
End | ||
Begin VB.Label Label2 | ||
Caption = "Port:" | ||
Height = 375 | ||
Left = 120 | ||
TabIndex = 1 | ||
Top = 600 | ||
Width = 1575 | ||
End | ||
Begin VB.Label Label1 | ||
Caption = "IP:" | ||
Height = 255 | ||
Left = 120 | ||
TabIndex = 0 | ||
Top = 240 | ||
Width = 1455 | ||
End | ||
End | ||
Attribute VB_Name = "Form1" | ||
Attribute VB_GlobalNameSpace = False | ||
Attribute VB_Creatable = False | ||
Attribute VB_PredeclaredId = True | ||
Attribute VB_Exposed = False | ||
Private Sub Command1_Click() | ||
If txtip.text = "" Then | ||
Addtolog "No IP Specified" | ||
ElseIf txtport.text = "" Then | ||
Addtolog "No Port Specified" | ||
Else | ||
|
||
sckudp.RemoteHost = txtip.text | ||
sckudp.RemotePort = txtport.text | ||
|
||
'Winsock1.LocalPort = 6003 | ||
'Winsock1.Listen | ||
End If | ||
End Sub | ||
|
||
Private Sub Command2_Click() | ||
sckudp.SendData txtdata.text | ||
Addtolog "Sent: " & txtdata.text | ||
End Sub | ||
Public Function Addtolog(text As String) | ||
' Add a line to the text box | ||
txtlog.text = txtlog.text + text & vbCrLf | ||
End Function | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div align="center"> | ||
|
||
## Simple UDP example | ||
|
||
|
||
</div> | ||
|
||
### Description | ||
|
||
This is a VERY simple example of Using the winsock control to send/recieve information via the UDP protocol. This is pure example nothing more it is perfect for the beginner. The code is fully commented and clean | ||
|
||
### More Info | ||
|
||
|
||
|
||
<span> |<span> | ||
--- |--- | ||
**Submitted On** |2002-12-17 13:07:12 | ||
**By** |[Mick Walton](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByAuthor/mick-walton.md) | ||
**Level** |Beginner | ||
**User Rating** |5.0 (25 globes from 5 users) | ||
**Compatibility** |VB 6\.0 | ||
**Category** |[Internet/ HTML](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByCategory/internet-html__1-34.md) | ||
**World** |[Visual Basic](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByWorld/visual-basic.md) | ||
**Archive File** |[Simple\_UDP1607856302003\.zip](https://github.com/Planet-Source-Code/mick-walton-simple-udp-example__1-46539/archive/master.zip) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Type=Exe | ||
Form=frmmain.frm | ||
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\WINNT\System32\stdole2.tlb#OLE Automation | ||
Object={248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0; MSWINSCK.OCX | ||
IconForm="frmmain" | ||
Startup="frmmain" | ||
Command32="" | ||
Name="Project1" | ||
HelpContextID="0" | ||
CompatibleMode="0" | ||
MajorVer=1 | ||
MinorVer=0 | ||
RevisionVer=0 | ||
AutoIncrementVer=0 | ||
ServerSupportFiles=0 | ||
VersionCompanyName="Blackburn College" | ||
CompilationType=0 | ||
OptimizationType=0 | ||
FavorPentiumPro(tm)=0 | ||
CodeViewDebugInfo=0 | ||
NoAliasing=0 | ||
BoundsCheck=0 | ||
OverflowCheck=0 | ||
FlPointCheck=0 | ||
FDIVCheck=0 | ||
UnroundedFP=0 | ||
StartMode=0 | ||
Unattended=0 | ||
Retained=0 | ||
ThreadPerObject=0 | ||
MaxNumberOfThreads=1 | ||
|
||
[MS Transaction Server] | ||
AutoRefresh=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Type=Exe | ||
Form=frmcmain.frm | ||
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\WINNT\System32\stdole2.tlb#OLE Automation | ||
Object={248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0; MSWINSCK.OCX | ||
IconForm="Form1" | ||
Startup="Form1" | ||
Command32="" | ||
Name="Project1" | ||
HelpContextID="0" | ||
CompatibleMode="0" | ||
MajorVer=1 | ||
MinorVer=0 | ||
RevisionVer=0 | ||
AutoIncrementVer=0 | ||
ServerSupportFiles=0 | ||
VersionCompanyName="Blackburn College" | ||
CompilationType=0 | ||
OptimizationType=0 | ||
FavorPentiumPro(tm)=0 | ||
CodeViewDebugInfo=0 | ||
NoAliasing=0 | ||
BoundsCheck=0 | ||
OverflowCheck=0 | ||
FlPointCheck=0 | ||
FDIVCheck=0 | ||
UnroundedFP=0 | ||
StartMode=0 | ||
Unattended=0 | ||
Retained=0 | ||
ThreadPerObject=0 | ||
MaxNumberOfThreads=1 | ||
|
||
[MS Transaction Server] | ||
AutoRefresh=1 |
Oops, something went wrong.