Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 21.2.4 ]
Hello, when i create a server socket in flexsim, and send message by external system(WMS), becasue the external system has a lot of task, so it use thread to send message to flexsim server, it means flexsim server need to accept different connection from different port, i create new connetion in loop by code like this:
int client = serveraccept(1);
while(client == 0){
clientclose(client);
int client = serveraccept(1);
}
it work fine at first, but when the client value reach 50, it not work, does the return value of serveraccept is 50, it limit 50 connection?
Then, i solved it by ending the server and create a new server when the connections reach 50.
Could someone tell me the reason? Thanks!
Solved! Go to Solution.