- 博客(9)
- 收藏
- 关注
转载 Mina.Net实现的UDP多路广播
主要用于未确定主机地址的情况下,可以使用多路广播和服务端通信,下面是官方提供的DEMO。using System;using System.Net;using System.Net.Sockets;using System.Text;using Mina.Core.Session;using Mina.Filter.Codec;using Mina.Fil...
2016-04-29 13:19:00 206
转载 Mina.Net实现的断线重连
using Mina.Filter.Codec;using Mina.Filter.Codec.TextLine;using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Text;using Mina.Core.Session...
2016-04-29 13:16:00 298
转载 Mina.Net实现的UDP协议消息收发Demo
using Mina.Filter.Codec;using Mina.Filter.Codec.TextLine;using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Text;using Mina.Core.Session...
2016-04-29 13:15:00 143
转载 MySql 比Replace Into更适合的用法,外加SqlServer的方式。
Mysql:INSERT INTO `his_examine_result` (Mid,His_Examine_Mid, His_File_Mid, ResultType, His_Employee_Mid, His_Employee_Name, ExamineResult, ExamineItemName, ...
2016-04-28 10:37:00 455
转载 MySql【Insert Select Not Exist】判断记录再添加值的方案
INSERT INTO content ( detail, status, beginTime, endTime) SELECT @detail, 1, NULL, NULL FROM DUAL WHERE NOT EXISTS( ...
2016-04-13 16:12:00 340
转载 MySql中存储过程中的@变量总是无法执行,提示Parameter '@XXX' must be defined
一、情形:在.net调用Mysql时,比如如下的一句SQL,总是无法执行,可是在其它SQL客户端窗口中是能正确执行的。drop procedure if exists AddColumnUnlessExists;create procedure AddColumnUnlessExists(IN tableName tinytext,IN fieldName tinytex...
2016-04-10 10:53:00 937
转载 Go语言使用Beego的ORM插入Mysql后,时区不一致的解决方案
一、解决方案:方案一:orm.Debug = false orm.DefaultTimeLoc = time.UTC orm.RegisterDriver("mysql", orm.DRMySQL) orm.RegisterDataBase("default", "mysql", "root:LPET6Plus@tcp(127.0.0.1:18283)/lpet6...
2016-04-07 16:17:00 262
转载 Go语言中Path包用法
// pathpackage mainimport ( "fmt" "os" "path" "path/filepath")func main() { //Path操作 fmt.Println("Path操作-----------------") fmt.Println(path.Base("http://www.baidu.com...
2016-04-06 17:58:00 237
转载 C#(WPF和WinForm)在普通类中调用到主线程的方法,SynchronizationContext的用法。
一、SynchronizationContext类用法:1、对于WindowsFrom应用程序,如果想在某个类中,不方便使用到控件的Invoke方法时,可以使用WindowsBase.dll下的System.Thread.SynchronizationContext。namespace FormDispatcher{ public partial class F...
2016-04-01 09:57:00 397
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人