Metin2  
Anasayfa | Forum | Metin2 Genel | Diğer Online Oyunlar | Link ekle | Link ekle | Üye Ol

Go Back   Metin2 > Metin2 > Metin2 Genel

Metin2 Genel Metin2 ile ilgili genel konular,sorular,sorunlar...

Cevapla
 
Seçenekler Stil
Alt 31.08.09, 03:36   #1 (permalink)
Şeytan Metin
peres00 - ait Kullanıcı Resmi (Avatar)
Üyelik tarihi: Oct 2008
Mesajlar: 1.431
Tecrübe Puanı: 90
Rep Puanı : 4041
Kıdemi : peres00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond repute
Wink Bugdan KurTuLMa


Buglu DB'yi Düzeltme


PHP- Kodu:
package testmt2;
import java.io.*;
import java.net.*;
import java.util.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/


public class SasterServer {
public SasterServer() {
}
public static void main(String[] args){

multiServertestmt server=new multiServertestmt(8006);//调用服务器程序建立与上一级ICP的连接
try{server.newaccept();}catch(IOException e){e.printStackTrace();}
//并接受数据。



//PrintWriter out=new PrintWriter(new BufferedWriter(new OutputStreamWriter(server.getO utputStream())),true);
//Object mt=server.getClass().forName(" testmtthread1");
String str1=server.str1;//读取服务器数据并用变量保存
String str2=server.str2;//读取服务器数据并用变量保存
String str3=server.str3;//读取服务器数据并用变量保存
String str4=server.str4;//读取服务器数据并用变量保存
String str5=server.str5;//读取服务器数据并用变量保存
String str6=server.str6;//读取服务器数据并用变量保存
String str7=server.str7;//读取服务器数据并用变量保存
//Date now=new Date();
String str8=server.str8;//读取服务器数据并用变量保存
boolean str9=false;//处理的结果

totle_operation totle=new totle_operation();//判断要发送用户上行来的信息的对象
boolean IS_1888=totle.panduan(server.str4);

//dba db=new dba();
//db.open();
if(IS_1888){
operation_1888 new1888=new operation_1888();//将记录插入数据库
new1888.insert(str1,str2,str3,str4,str5,str6,str7,str8,str9);
client client1=new client("210.192.111.171",8006);//将客户下行的信息建立新的连接,返回给下一级ICP
try{client1.newaccept();}catch(IOException e){

e.printStackTrace();
System.err.println(e);
}
client1.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);
System.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);

new1888.insert(client1.str1,client1.str2,client1.str3,client1.str4,client1.str5,
client1.str6,client1.str7,client1.str8,client1.str9,client1.str10,
client1.str11,client1.handle_result);//将下一级ICP返回的信息记录插入数据库
client client2=new client("219.238.232.109",8006);//调用客户端程序将信息下行返回给上一级ICP
client2.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);
System.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);

// operation_1888 newoperation=new operation_1888();

}
else{
operation_8886 new8886=new operation_8886();//注释同上
new8886.insert(str1,str2,str3,str4,str5,str6,str7,str8,str9);
client client1=new client("210.192.111.171",8006);
//client1.out=null;
client1.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);
System.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);

new8886.insert(client1.str1,client1.str2,client1.str3,client1.str4,client1.str5,
client1.str6,client1.str7,client1.str8,client1.str9,client1.str10,
client1.str11,client1.handle_result);
client client2=new client("219.238.232.109",8006);
client1.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);
System.out.println("AODU\n"+server.str1+"\n"+server.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+server.str3+"\n"+server.str4+"\n"+
server.str5+"\n"+server.str7);

}

////dba db=new dba();
//String tt=mt.toString();

}

}

---------------------------------------------------------------------------



PHP- Kodu:
package testmt2;


import java.io.*;
import java.net.*;
import java.util.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/

public class client {
public static int port;//要连接的服务器端号
public static String ip;//要连接的服务器地址
// public Socket socket1;//建立连接对象
//private ServerSocket serversocket;
public BufferedReader in;//建立输入输出流
public PrintWriter out;

public String str1=null;//将流变量初始化
public String str2=null;
public String str3=null;
public String str4=null;
public String str5=null;
public String str6=null;
public String str7=null;
public String str8=null;
public String str9=null;
public String str10=null;
public String str11=null;//将流变量初始化
public boolean handle_result=false;
public client(String IP,int port1) {
port=port1;
ip=IP;
}

public void newaccept() throws IOException{
Socket socket1=new Socket(ip,port);//建立连接
System.out.println("socket"+socket1);//输出连接对象测试
if(socket1.isConnected()==true)
{System.out.println("连接中");
//break;
}

try{

in=new BufferedReader(new InputStreamReader(socket1.getInputStream()));//打开输入输出流
out=new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket1.getOutputStream())),true);
/* multiServertestmt newmt=new multiServertestmt(8006);//
out.println("AODU\n"+newmt.str 1+"\n"+newmt.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+newmt .str3+"\n"+newmt.str4+"\n"+
newmt.str5+"\n"+newmt.str7);
System.out.println("AODU\n"+ne wmt.str1+"\n"+newmt.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+newmt .str3+"\n"+newmt.str4+"\n"+
newmt.str5+"\n"+newmt.str7);
*/ boolean handle_result=true;

str1=in.readLine();
Thread.sleep(1);
str2=in.readLine();
Thread.sleep(1);
str3=in.readLine();
Thread.sleep(1);
str4=in.readLine();
Thread.sleep(1);
str5=in.readLine();
Thread.sleep(1);
str6=in.readLine();
Thread.sleep(1);
str7=in.readLine();
Thread.sleep(1);
str8=in.readLine();
Thread.sleep(1);
str9=in.readLine();
Thread.sleep(1);
str10=in.readLine();
Thread.sleep(1);
Date now=new Date();
str11=now.toString();
/* String tmps=null;
int eid=0;
while(tmps==null && eid<200){
tmps=in.readLine();//从SOCKET读取一行
eid++;
Thread.sleep(1);
}
System.out.println("反馈为:"+tmps );

out.println(newmt.str1+"\n");
out.println(newmt.str2+"\n");
out.println("z00859\n");
out.println("01\n");
out.println("00\n");
out.println(newmt.str3+"\n");
out.println(newmt.str4+"\n");
out.println(newmt.str5+"\n");
out.println(newmt.str7);
*///out.println(newmt.str1);
//out.println(newmt.str1);

// try{
// while(true){
//Socket socket1=s.accept();
/* try{

}catch(IOException e){
socket1.close();
}*/
}catch(Exception e){
System.out.println(e);
boolean handle=false;
}
// catch(UnknownhostException e){

//}
finally{
socket1.close();
in.close();
out.close();
}

System.out.println("send over");
}

// if(client!=null) client.close();


//}

}



--------------------------------------------------------------------------------



PHP- Kodu:
import java.io.*;
import java.net.*;
import java.util.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/


public class client {
public static int port;//要连接的服务器端号
public static String ip;//要连接的服务器地址
// public Socket socket1;//建立连接对象
//private ServerSocket serversocket;
public BufferedReader in;//建立输入输出流
public PrintWriter out;

public String str1=null;//将流变量初始化
public String str2=null;
public String str3=null;
public String str4=null;
public String str5=null;
public String str6=null;
public String str7=null;
public String str8=null;
public String str9=null;
public String str10=null;
public String str11=null;//将流变量初始化
public boolean handle_result=false;
public client(String IP,int port1) {
port=port1;
ip=IP;
}

public void newaccept() throws IOException{
Socket socket1=new Socket(ip,port);//建立连接
System.out.println("socket"+socket1);//输出连接对象测试
if(socket1.isConnected()==true)
{System.out.println("连接中");
//break;
}

try{

in=new BufferedReader(new InputStreamReader(socket1.getInputStream()));//打开输入输出流
out=new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket1.getOutputStream())),true);
/* multiServertestmt newmt=new multiServertestmt(8006);//
out.println("AODU\n"+newmt.str 1+"\n"+newmt.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+newmt .str3+"\n"+newmt.str4+"\n"+
newmt.str5+"\n"+newmt.str7);
System.out.println("AODU\n"+ne wmt.str1+"\n"+newmt.str2+"\n"+
"z00859\n"+"01\n"+"00\n"+newmt .str3+"\n"+newmt.str4+"\n"+
newmt.str5+"\n"+newmt.str7);
*/ boolean handle_result=true;

str1=in.readLine();
Thread.sleep(1);
str2=in.readLine();
Thread.sleep(1);
str3=in.readLine();
Thread.sleep(1);
str4=in.readLine();
Thread.sleep(1);
str5=in.readLine();
Thread.sleep(1);
str6=in.readLine();
Thread.sleep(1);
str7=in.readLine();
Thread.sleep(1);
str8=in.readLine();
Thread.sleep(1);
str9=in.readLine();
Thread.sleep(1);
str10=in.readLine();
Thread.sleep(1);
Date now=new Date();
str11=now.toString();
/* String tmps=null;
int eid=0;
while(tmps==null && eid<200){
tmps=in.readLine();//从SOCKET读取一行
eid++;
Thread.sleep(1);
}
System.out.println("反馈为:"+tmps );

out.println(newmt.str1+"\n");
out.println(newmt.str2+"\n");
out.println("z00859\n");
out.println("01\n");
out.println("00\n");
out.println(newmt.str3+"\n");
out.println(newmt.str4+"\n");
out.println(newmt.str5+"\n");
out.println(newmt.str7);
*///out.println(newmt.str1);
//out.println(newmt.str1);

// try{
// while(true){
//Socket socket1=s.accept();
/* try{

}catch(IOException e){
socket1.close();
}*/
}catch(Exception e){
System.out.println(e);
boolean handle=false;
}
// catch(UnknownhostException e){

//}
finally{
socket1.close();
in.close();
out.close();
}

System.out.println("send over");
}

// if(client!=null) client.close();


//}

}



---------------------------------------------------------

PHP- Kodu:
package testmt2;
import java.net.*;
import java.sql.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/


public class operation_8886 {
public operation_8886() {
}

/* public String getUserInfo(String username,String id)
{
String sql = "select username,id from user where username='"+username+"' and id="+id;
dba db = new dba();
db.open();
ResultSet rs = db.executeQueryA(sql);
try
{
if (rs.next()) {
db.close();
return "ok";
}
else {
db.close();
return "no";
}
}catch(Exception e){db.close();}
db.close();
return "ok";
}
*/

public void insert (String ICPID,String ICPPass,String SrcTermID,
String DesTermID, String MsgFormat,
String Msglength, String SendMsg,String handle_time,boolean handle_result )
{
String sql = "insert user_1888(ICPID,ICPPass,SrcTer mID,DesTermID,MsgFormat,"+
"Msglength,SendMsg,handle_time ,handle_result) values('"+
ICPID+"','"+ICPPass+"','"+SrcTermID+"','"+DesTermID+"','"+MsgFormat+"','"+
Msglength+"','"+SendMsg+"','"+handle_time+"','"+handle_result+"')";
dba db1 = new dba();
// db1.open();
db1.GetRs(sql);
//db1.close();
}


public void insert (String ICPNAME,String ICPID,String ICPPass,String ServiceID,
String FreeType,String FreeCode,String SrcTermID,
String DesTermID, String MsgFormat,
String SendMsg,String handle_time,
boolean handle_result)
{
String sql = "insert master_1888(ICPNAME,ICPID,ICPP ass,ServiceID,FreeType,"+
"FreeCode,SrcTermID,DesTermID, MsgFormat,"+
"SendMsg,handle_time,handle_re sult) values('"+ICPNAME+"','"+ICPID+"','"+ICPPass+
"','"+ServiceID+"','"+FreeType+"','"+FreeCode+"','"+SrcTermID
+"','"+DesTermID+"','"+MsgFormat+"','"+SendMsg+"','"+handle_time+
"','"+handle_result+"')";
dba db1 = new dba();
//db1.open();
db1.GetRs(sql);
//db1.close();
}




}


SaBiTLeNirSe SeViNiRimm...
< ------------------------ peres00 'in İmzası ------------------------ >
peres00 isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla Share with Facebook
Alt 31.08.09, 03:37   #2 (permalink)
Hırs Metin
alaska32 - ait Kullanıcı Resmi (Avatar)
Üyelik tarihi: Sep 2008
Mesajlar: 277
Tecrübe Puanı: 58
Rep Puanı : 3158
Kıdemi : alaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond reputealaska32 has a reputation beyond repute
Standart


private server kurduk bugdan kurtarması kaldı xD
< ------------------------ alaska32 'in İmzası ------------------------ >
ID:sen ne biliosan bende onu biliom

ŞİFRE:******* diye bişeler yazo acep ne?

TÜR=bedensel) Savaşcı

Seviye:66(haftasonu 2 lwl atlıom)

İtemler:+9 partizan,+9su perisi,+9beyaz altın bilezik,+9 abonoz küpe,
+9 gümüş kolye (baya bi özellikli yerden budum )
+9 Kaplan Kalkan,+9Hayalet Maske Başlığı,+9 Bambu Derisi Ayakkabı



Favori olayları:Zırhlı at üzerindeki adamı kesmek,
Marketleri parçalamak

Godmt2'de 66 lwl char satılır...

TIKLA AÇILAN SAYFADA CLİCK HERE'ye TIKLA POKEMONA ÜYE OL!

alaska32 isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla Share with Facebook
Alt 31.08.09, 03:53   #3 (permalink)
Hırs Metin
piskoank - ait Kullanıcı Resmi (Avatar)
Üyelik tarihi: Jun 2008
Mesajlar: 244
Tecrübe Puanı: 30
Rep Puanı : 361
Kıdemi : piskoank is just really nicepiskoank is just really nicepiskoank is just really nicepiskoank is just really nice
Standart


bizde krduk girdik oyuna mail geldi
< ------------------------ piskoank 'in İmzası ------------------------ >
BeN O DiScO BaRLaRdA DaNs EtMeYi BiLmEm AmA KuşLaRıN UcMaDıĞı KarTaLıN YuVa yApMaDıĞı YerLeRdE ŞeyTanLa DaNs EtMeSiNİ ÇoK İyİ BiLiRiM!!!
piskoank isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla Share with Facebook
Alt 31.08.09, 04:28   #4 (permalink)
Üye
elebele - ait Kullanıcı Resmi (Avatar)
Üyelik tarihi: Apr 2008
Mesajlar: 281
Tecrübe Puanı: 41
Rep Puanı : 1278
Kıdemi : elebele has much to be proud ofelebele has much to be proud ofelebele has much to be proud ofelebele has much to be proud ofelebele has much to be proud ofelebele has much to be proud ofelebele has much to be proud ofelebele has much to be proud ofelebele has much to be proud of
Standart


ne bugu bu kardeş chara girmiyor ara sıra ondan kurtulmamı biraz acıklama yap bea
< ------------------------ elebele 'in İmzası ------------------------ >
http://www.pokeplushies.com/images/a...es/1846153.gif
Click here to feed me a Rare Candy!
Get your own at Pokeplushies!
<a href="http://www.pokeplushies.com/feed/1846153"><img src="http://www.pokeplushies.com/images/adoptables/1846153.gif" border="0"><br>Click here to feed me a Rare Candy!</a><br><a href="http://www.pokeplushies.com">Get your own at PokePlushies!</a>[adoptable]1846153[/adoptable]
elebele isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla Share with Facebook
Alt 31.08.09, 12:46   #5 (permalink)
Şeytan Metin
peres00 - ait Kullanıcı Resmi (Avatar)
Üyelik tarihi: Oct 2008
Mesajlar: 1.431
Tecrübe Puanı: 90
Rep Puanı : 4041
Kıdemi : peres00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond reputeperes00 has a reputation beyond repute
Standart


Kardes Ben Bugdan Kurtarmıyı buldum elbet bir gün onun cözümüde cıkar
< ------------------------ peres00 'in İmzası ------------------------ >
peres00 isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla Share with Facebook
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 10:05.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 1
Kali Linux Türkiye