w**t 发帖数: 24 | 1 用matlab tcpip作了一个client去连matlab作的一个server. 在不退出的情况下,clie
nt第一次传的数据,server能收到,以后再传数据时,
server就没有收到过数据. Google了一下,据说是matlab socket linger的问题,可没
有找到解决办法。有人作过这个么?怎么解决的? | k**********g 发帖数: 989 | 2 More details please.
1. Firstly there are many TCPIP examples on MATLAB Exchange.
2. Do you use Java directly from MATLAB?
3. If you want to do something that will block the current thread, it will
block MATLAB (the GUI) too. Typically, each connection will require its own
thread (sometimes 2-3 threads per connection). Trying to do everything from
a single thread requires advanced programming skills, and will certainly
require writing your own Java classes on top of the built-in API. | w**t 发帖数: 24 | 3 server是用matlab作的。我用matlab 作了一个client, 也用在matlab调作java的socke
t作了一个client.这个client有一个用matlab作的gui. 不管哪个client, 都是第一次传
数据时server能收到,再传时,
server收不到数据。我也参考了Matlab exchange上的tcpip examples,
用他们的方法作的client一样有这个问题。google了一下,没找到解决方法。
own
from
【在 k**********g 的大作中提到】 : More details please. : 1. Firstly there are many TCPIP examples on MATLAB Exchange. : 2. Do you use Java directly from MATLAB? : 3. If you want to do something that will block the current thread, it will : block MATLAB (the GUI) too. Typically, each connection will require its own : thread (sometimes 2-3 threads per connection). Trying to do everything from : a single thread requires advanced programming skills, and will certainly : require writing your own Java classes on top of the built-in API.
|
|