|
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_create_socket("socket1", "TCP", "RemoteHost=xiangxiang:8121", LrsLastArg);
lrs_send("socket1", "buf8", LrsLastArg);
lrs_receive("socket1", "buf9", LrsLastArg);
lrs_disable_socket("socket1", DISABLE_SEND_RECV);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "RemoteHost=xiangxiang:8121", LrsLastArg);
lrs_send("socket2", "buf10", LrsLastArg);
lrs_receive("socket2", "buf11", LrsLastArg);
lrs_disable_socket("socket2", DISABLE_SEND_RECV);
lrs_close_socket("socket2");
lrs_create_socket("socket3", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket3", "buf12", LrsLastArg);
lrs_receive("socket3", "buf13", LrsLastArg);
lrs_close_socket("socket3");
lrs_create_socket("socket4", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket4", "buf14", LrsLastArg);
lrs_receive("socket4", "buf15", LrsLastArg);
lrs_send("socket4", "buf16", LrsLastArg);
lrs_receive("socket4", "buf17", LrsLastArg);
lrs_close_socket("socket4");
lrs_create_socket("socket5", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket5", "buf18", LrsLastArg);
lrs_receive("socket5", "buf19", LrsLastArg);
lrs_close_socket("socket5");
lrs_create_socket("socket6", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket6", "buf20", LrsLastArg);
lrs_receive("socket6", "buf21", LrsLastArg);
lrs_send("socket6", "buf22", LrsLastArg);
lrs_receive("socket6", "buf23", LrsLastArg);
lrs_create_socket("socket7", "TCP", "RemoteHost=xiangxiang:8121", LrsLastArg);
lrs_send("socket7", "buf24", LrsLastArg);
lrs_receive("socket7", "buf25", LrsLastArg);
lrs_disable_socket("socket7", DISABLE_SEND_RECV);
lrs_close_socket("socket7");
lrs_create_socket("socket8", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket8", "buf26", LrsLastArg);
lrs_receive("socket8", "buf27", LrsLastArg);
lrs_send("socket8", "buf28", LrsLastArg);
lrs_receive("socket8", "buf29", LrsLastArg);
lrs_send("socket8", "buf30", LrsLastArg);
lrs_receive("socket8", "buf31", LrsLastArg);
lrs_send("socket8", "buf32", LrsLastArg);
lrs_receive("socket8", "buf33", LrsLastArg);
lrs_send("socket8", "buf34", LrsLastArg);
lrs_receive("socket8", "buf35", LrsLastArg);
lrs_send("socket8", "buf36", LrsLastArg);
lrs_receive("socket8", "buf37", LrsLastArg);
lrs_send("socket8", "buf38", LrsLastArg);
lrs_receive("socket8", "buf39", LrsLastArg);
lrs_send("socket8", "buf40", LrsLastArg);
lrs_receive("socket8", "buf41", LrsLastArg);
lrs_send("socket8", "buf42", LrsLastArg);
lrs_receive("socket8", "buf43", LrsLastArg);
lrs_send("socket8", "buf44", LrsLastArg);
lrs_receive("socket8", "buf45", LrsLastArg);
lrs_send("socket8", "buf46", LrsLastArg);
lrs_receive("socket8", "buf47", LrsLastArg);
lrs_send("socket8", "buf48", LrsLastArg);
lrs_receive("socket8", "buf49", LrsLastArg);
lrs_send("socket8", "buf50", LrsLastArg);
lrs_receive("socket8", "buf51", LrsLastArg);
lrs_send("socket8", "buf52", LrsLastArg);
lrs_create_socket("socket9", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_receive("socket8", "buf53", LrsLastArg);
lrs_create_socket("socket10", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket8", "buf54", LrsLastArg);
lrs_send("socket9", "buf55", LrsLastArg);
lrs_receive("socket8", "buf56", LrsLastArg);
lrs_send("socket10", "buf57", LrsLastArg);
lrs_receive("socket9", "buf58", LrsLastArg);
lrs_send("socket8", "buf59", LrsLastArg);
lrs_receive("socket10", "buf60", LrsLastArg);
lrs_send("socket9", "buf61", LrsLastArg);
lrs_receive("socket8", "buf62", LrsLastArg);
lrs_create_socket("socket11", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket10", "buf63", LrsLastArg);
lrs_receive("socket9", "buf64", LrsLastArg);
lrs_send("socket8", "buf65", LrsLastArg);
lrs_receive("socket9", "buf66", LrsLastArg);
lrs_receive("socket8", "buf67", LrsLastArg);
lrs_send("socket11", "buf68", LrsLastArg);
lrs_receive("socket9", "buf69", LrsLastArg);
lrs_receive("socket11", "buf70", LrsLastArg);
lrs_close_socket("socket9");
lrs_create_socket("socket12", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_create_socket("socket13", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket12", "buf71", LrsLastArg);
lrs_receive("socket12", "buf72", LrsLastArg);
lrs_send("socket13", "buf73", LrsLastArg);
lrs_send("socket12", "buf74", LrsLastArg);
lrs_receive("socket13", "buf75", LrsLastArg);
lrs_receive("socket12", "buf76", LrsLastArg);
lrs_send("socket13", "buf77", LrsLastArg);
lrs_receive("socket12", "buf78", LrsLastArg);
lrs_receive("socket13", "buf79", LrsLastArg);
lrs_receive("socket12", "buf80", LrsLastArg);
lrs_receive("socket13", "buf81", LrsLastArg);
lrs_close_socket("socket12");
lrs_receive("socket13", "buf82", LrsLastArg);
lrs_close_socket("socket13");
lrs_send("socket0", "buf83", LrsLastArg);
lrs_receive("socket0", "buf84", LrsLastArg);
lrs_send("socket0", "buf85", LrsLastArg);
lrs_receive("socket0", "buf86", LrsLastArg);
lrs_send("socket0", "buf87", LrsLastArg);
lrs_receive("socket0", "buf88", LrsLastArg);
lrs_send("socket0", "buf89", LrsLastArg);
lrs_receive("socket0", "buf90", LrsLastArg);
lrs_send("socket0", "buf91", LrsLastArg);
lrs_receive("socket0", "buf92", LrsLastArg);
lrs_send("socket0", "buf93", LrsLastArg);
lrs_receive("socket0", "buf94", LrsLastArg);
lrs_send("socket0", "buf95", LrsLastArg);
lrs_receive("socket0", "buf96", LrsLastArg);
lrs_send("socket0", "buf97", LrsLastArg);
lrs_receive("socket0", "buf98", LrsLastArg);
lrs_send("socket0", "buf99", LrsLastArg);
lrs_receive("socket0", "buf100", LrsLastArg);
lrs_send("socket0", "buf101", LrsLastArg);
lrs_receive("socket0", "buf102", LrsLastArg);
lrs_send("socket8", "buf103", LrsLastArg);
lrs_receive("socket8", "buf104", LrsLastArg);
lrs_send("socket8", "buf105", LrsLastArg);
lrs_create_socket("socket14", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_receive("socket8", "buf106", LrsLastArg);
lrs_send("socket8", "buf107", LrsLastArg);
lrs_send("socket14", "buf108", LrsLastArg);
lrs_receive("socket8", "buf109", LrsLastArg);
lrs_receive("socket14", "buf110", LrsLastArg);
lrs_send("socket8", "buf111", LrsLastArg);
lrs_receive("socket8", "buf112", LrsLastArg);
lrs_send("socket14", "buf113", LrsLastArg);
lrs_receive("socket14", "buf114", LrsLastArg);
lrs_send("socket14", "buf115", LrsLastArg);
lrs_receive("socket14", "buf116", LrsLastArg);
lrs_close_socket("socket14");
lrs_send("socket8", "buf117", LrsLastArg);
lrs_receive("socket8", "buf118", LrsLastArg);
lr_think_time(8);
lrs_create_socket("socket15", "TCP", "RemoteHost=xiangxiang:8123", LrsLastArg);
lrs_send("socket15", "buf119", LrsLastArg);
lrs_receive("socket15", "buf120", LrsLastArg);
lrs_send("socket15", "buf121", LrsLastArg);
lrs_receive("socket15", "buf122", LrsLastArg);
lrs_send("socket15", "buf123", LrsLastArg);
lrs_receive("socket15", "buf124", LrsLastArg);
lrs_send("socket15", "buf125", LrsLastArg);
lrs_receive("socket15", "buf126", LrsLastArg);
lrs_send("socket15", "buf127", LrsLastArg);
lrs_receive("socket15", "buf128", LrsLastArg);
lrs_send("socket15", "buf129", LrsLastArg);
lrs_receive("socket15", "buf130", LrsLastArg);
lrs_send("socket15", "buf131", LrsLastArg);
lrs_receive("socket15", "buf132", LrsLastArg);
lrs_send("socket15", "buf133", LrsLastArg);
lrs_receive("socket15", "buf134", LrsLastArg);
lrs_send("socket15", "buf135", LrsLastArg);
lrs_receive("socket15", "buf136", LrsLastArg);
lrs_send("socket15", "buf137", LrsLastArg);
lrs_receive("socket15", "buf138", LrsLastArg);
lrs_close_socket("socket15");
return 0;
}
错误: socket11 - 软件造成连接终止。错误代码: 10053。 |
|