私は3つの機能を持っています:
public int ok_join(string gr)
{
...................
string gash = Regex.Match(response, @"gash:""(?<id>[^""]+)""").Groups["id"].Value;
string groupId = Regex.Match(response, @"state:""smd=(?<id>[^""]+)""").Groups["id"].Value;
......................
}
public bool ok_post(string gr)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.site.ru/" + gash + "&stoud=" + groupId + "&");
.........................
}
public void go()
{
while (true)
{
........
int h = ok_join(gr);
if (h == 0)
ok_post(gr);
.............
}
}
関数ok_joinからok_postにgashとgroupidの値を送信する方法は?