123
2015-08-19 20:14
375 查看
Imports System.Text
Imports System.Net
Imports System.Net.Sockets
Module Module1
Sub Main()
Dim strMyArg As String()
Dim objUdpClient As New UdpClient(1234)
Dim objIPEndPoint As New IPEndPoint(IPAddress.Any, 0)
Dim byteRecvData As [Byte]()
Dim strRecvData As String
Console.Error.WriteLine("udpReader v0.01")
strMyArg = System.Environment.GetCommandLineArgs
If strMyArg.Length < 3 Then
Console.Error.WriteLine("Usage: udpReader <PORT>")
' End
End If
Do While True
byteRecvData = objUdpClient.Receive(objIPEndPoint)
strRecvData = Encoding.ASCII.GetString(byteRecvData)
Console.WriteLine(strRecvData)
Console.WriteLine("EEB v0.1 Acknowledge :: Event->ChangeFinish : Where->Place = Change, ID=12345678 : Meta->Checksum = 12345678, CRC->0xfb")
Console.WriteLine("Info->File ""12345678.MPG"" has been changed into ""12345678.M4T"".")
Console.WriteLine("Recommand->Please check the metadata And get ready to migrate.")
Loop
End Sub
End Module
Imports System.Net
Imports System.Net.Sockets
Module Module1
Sub Main()
Dim strMyArg As String()
Dim objUdpClient As New UdpClient(1234)
Dim objIPEndPoint As New IPEndPoint(IPAddress.Any, 0)
Dim byteRecvData As [Byte]()
Dim strRecvData As String
Console.Error.WriteLine("udpReader v0.01")
strMyArg = System.Environment.GetCommandLineArgs
If strMyArg.Length < 3 Then
Console.Error.WriteLine("Usage: udpReader <PORT>")
' End
End If
Do While True
byteRecvData = objUdpClient.Receive(objIPEndPoint)
strRecvData = Encoding.ASCII.GetString(byteRecvData)
Console.WriteLine(strRecvData)
Console.WriteLine("EEB v0.1 Acknowledge :: Event->ChangeFinish : Where->Place = Change, ID=12345678 : Meta->Checksum = 12345678, CRC->0xfb")
Console.WriteLine("Info->File ""12345678.MPG"" has been changed into ""12345678.M4T"".")
Console.WriteLine("Recommand->Please check the metadata And get ready to migrate.")
Loop
End Sub
End Module
相关文章推荐
- vijos - P1739计算系数 (多项式计算 + 杨辉三角形 + 快速幂)
- leetcode 257: Binary Tree Paths
- java IO流总结
- Intent的启动和属性(action)
- codeforces 123A A. Prime Permutation(数论+构造)
- iOS -归档
- ios 控制器的生命周期
- VC++新建工程和调试
- 黑马程序员—反射
- 五大布局——表格、帧、绝对布局
- 贝叶斯决策论小结
- ios UITextField
- AngularJS学习笔记之directive—scope选项与绑定策略
- ios-GCD详解
- 前30阶模n剩余类环上的乘法表
- 排序算法总结
- poj 1218&&hdu 1337 The Drunk Jailer【简单模拟】
- 秀尔算法:破解RSA加密的“不灭神话”
- [ASM]Linux x86平台汇编实例
- Java性能优化(1):用静态方法代替构造函数