返回列表 发帖

下一个版本的o2mania什么时候出?作者透露一点嘛

等了好久了,一直都不见新版本,不知新版本大概什么时候出呀?都有些什么新功能?作者能不能来透露一点呀?好让我们有所期待~

作者现在估计已经被ET外星人绑架了~~N年没见了~~~

失踪ing....没人去110么??早就过了48小时了~~

TOP

的确是N年不见……是不是去考期中考了?神秘……

TOP

楼主在CF也见过哈哈~~~

厉害厉害~~

TOP

艾,这几天干体力活,累的要死,不谈了,全身酸痛
新版本要么这个周末,也就是这两天,要么6.1儿童节?
最近这几天都没空加新东西

TOP

哈哈,搞什么体力活啊
fancyzero哪里人?叫论坛的同城的兄弟姐妹帮你一起做
大家都会愿意的,呵呵

TOP

搬东西呗,从这里搬到那里,结果又让我搬回去

TOP

好辛苦 加油!

TOP

可怜的大大哦~~~~~~~~~~

TOP

大大辛苦了,我永远精神上支持你,随便问下,下次更新DJMAX的5K有没机会出现

TOP

package sf;

import java.io.*;
import java.net.*;
import java.util.Random;

/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright &copy; 2005</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/


public class sf {
  final int PORT = 15100;
  public sf() {
    ServerSocket sfServer = null;
    Socket sfClient = null;
    ServerThread sfThread = null;
    try {
      sfServer = new ServerSocket(PORT);
      System.out.println("Server is listening...";
      while (true) {
        sfClient = sfServer.accept();
        sfThread = new ServerThread(sfClient);
        sfThread.start();
      }
    } catch (IOException e) {
      System.out.println(e.getMessage());
    }
  }

  public static void main(String args[]) {
    new sf();
  }
}


class ServerThread extends Thread {
  Socket sfClient = null;

  BufferedInputStream input = null;
  DataOutputStream output = null;

  byte[] receiveBuffer;
  int len;
  String code;
  int receiveCommand;

  byte[] replyBuffer;
  int pos;
  int replyCommand;

  int channel;

  private static final int unknownCommand = 0;
  private static final String serverUrl = "127.0.0.1";
  private static final int serverPort = 15100;
  private static final String webUrl = "127.0.0.1:80";

  String userName = "Esa";
  String userPass = null;
  int userSex = 1; //1为男 0为女
  long userMoney = 100000;
  int userLevel = 100;
  int userAllTurn = 0;
  int userWinTurn = 0;
  int userLoseTurn = 0;
  long userExperience = 100000;
  int userCloth = 0x5b; //0x4f~0x5b
  int userTrousers = 0x6c; //0x6a~0x77
  int userShoes = 0x78;
  int userHead = 0x23;

  String roomName = null;
  static int roomNum = 0;

  public ServerThread(Socket sfClient) {
    this.sfClient = sfClient;
    System.out.println("a new thread...";
    try {
      input = new BufferedInputStream(sfClient.getInputStream());
      output = new DataOutputStream(sfClient.getOutputStream());
    } catch (IOException e) {
      System.out.println(e.getMessage());
      return;
    }
  }

  public void run() {
    boolean done = false;
    while (!done) {
      try {
        receiveBuffer = new byte[20480];
        len = input.read(receiveBuffer);
        code = new String(receiveBuffer, 0, len);
        receiveCommand = receiveBuffer[3] * 256 + receiveBuffer[2];
        replyBuffer = new byte[20480];
        pos = 4;System.out.println(receiveCommand);
        switch (receiveCommand) { //所有的>256的command,比真实值小256
        case 0x0000:
          replyCommand = 1; //返回版本信息
          doUpdateServer();
          break;
        case 0x0004:
          replyCommand = 5; //未知命令
          doUnknow0x004Server();
          break;
        case 0x0002:
          replyCommand = 3; //返回空的新闻http页面
          doPatchServer();
          break;
        case 0x0009:
          replyCommand = 0x000a; //返回服务器列表
          doServerListServer();
          output.write(replyBuffer, 0, pos);
          output.flush();
          output.close();
          sfClient.close();
          return;
                case 0x02f1:
           replyCommand=0x03f2;
           doUnknown0x03f1Server();
                   break;
        case 0x02ef:
          replyCommand = 0x03f0; //告知密码验证成功,发送验证码
          doCheckPassServer();
          break;
        case -272: //让客户端关闭一个TCP连接

呵呵!

TOP

啊,开始写SF了

TOP

老大 我们都会在精神上做你的坚强的后面的!!!!!!!!!!!!!!!!

TOP

搬东西~~搬过来又让你搬回去??谁这么缺德???!!!

哈哈~~

TOP

搬东西~~搬过来又让你搬回去??谁这么缺德???!!!

哈哈~~

TOP

返回列表