📄 client.vb
字号:
Imports System
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.Tcp
Imports Microsoft.VisualBasic
imports Service
Module Client
Sub Main()
Try
Dim channel As TcpChannel = New TcpChannel()
ChannelServices.RegisterChannel(channel)
Dim WKSTE As New WellKnownServiceTypeEntry(GetType(RoomService), "Service", WellKnownObjectMode.Singleton)
RemotingConfiguration.RegisterWellKnownServiceType(WKSTE)
Dim h As Service.RoomService = Activator.GetObject(GetType(RoomService), "tcp://127.0.0.1:8080/Service")
dim strRoom as string
dim Stat as byte
dim msg as string
dim msg2 as string
Do
msg="块
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -