MMFProtocol socket object for the inter-process communication on the localhost, this can be using for the data exchange between two process.
MMFSocket
01 Syntax
Microsoft.VisualBasic.Parallel.MMFProtocol.MMFSocket
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | |
| ReadData | 1 | 直接从映射文件之中读取数据 |
| SendMessage | 2 | |
| ReadString | 1 | |
| Dispose | 1 | |
| ToString | 1 | |
| Ping | 1 | |
| CreateObject | 1 | |
| getMessage | 1 | |
| WriteMessage | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| NewMessageCallBack | 1 | |
| URI | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| MMF_PROTOCOL | 1 |
05 Members
#ctor(
String, Int64)Parameters
| Name | Type | Description |
|---|---|---|
uri | String | - |
chunkSize | Int64 | 默认的区块大小为100KB,这个对于一般的小文本传输已经足够了 |
#ctor(
String, DataArrival)Parameters
| Name | Type | Description |
|---|---|---|
uri | String | - |
dataArrivals | DataArrival | Public Delegate Sub MMFSocket.__dataArrival()(byteData As Byte()) 会优先于事件MMFSocket.__dataArrival()的发生 |
ReadData
直接从映射文件之中读取数据
SendMessage(
String)Parameters
| Name | Type | Description |
|---|---|---|
s | String |
|
MMF_PROTOCOL
NewMessageCallBack
URI
ReadString()
Dispose()
ToString()
Ping()
CreateObject(
String, Action(Of IEnumerable(Of Byte)))SendMessage(MMFSocket,
IEnumerable(Of Byte))getMessage(
IEnumerable(Of Byte), String)WriteMessage(
IEnumerable(Of Byte))